@@ -184,7 +184,7 @@ public async Task<bool> SendCallAsync(Call call, CallDispatch dispatch, UserProf
184184
185185 string subject = string . Empty ;
186186 string priority = string . Empty ;
187- string address = string . Empty ;
187+ string address = "No Address Supplied" ;
188188
189189 if ( call . IsCritical )
190190 {
@@ -199,9 +199,12 @@ public async Task<bool> SendCallAsync(Call call, CallDispatch dispatch, UserProf
199199
200200 string coordinates = "No Coordinates Supplied" ;
201201 if ( ! string . IsNullOrEmpty ( call . GeoLocationData ) && call . GeoLocationData . Length > 1 )
202- {
203202 coordinates = call . GeoLocationData ;
204203
204+ if ( ! string . IsNullOrEmpty ( call . Address ) )
205+ address = call . Address ;
206+ else if ( ! string . IsNullOrEmpty ( call . GeoLocationData ) && call . GeoLocationData . Length > 1 )
207+ {
205208 string [ ] points = call . GeoLocationData . Split ( char . Parse ( "," ) ) ;
206209
207210 if ( points != null && points . Length == 2 )
@@ -216,15 +219,10 @@ public async Task<bool> SendCallAsync(Call call, CallDispatch dispatch, UserProf
216219 }
217220 }
218221
219- if ( ! string . IsNullOrEmpty ( call . Address ) && string . IsNullOrWhiteSpace ( address ) )
220- address = call . Address ;
221- else
222- address = "No Address Supplied" ;
223-
224222 string dispatchedOn = String . Empty ;
225223
226224 if ( call . Department != null )
227- dispatchedOn = call . LoggedOn . FormatForDepartment ( call . Department ) ;
225+ dispatchedOn = call . LoggedOn . TimeConverterToString ( call . Department ) ;
228226 else
229227 dispatchedOn = call . LoggedOn . ToString ( "G" ) + " UTC" ;
230228
0 commit comments