public async Task <IHttpActionResult> Delete([FromUri] string id) { if (id is null) { return(BadRequest("Id of geolocation to delete cannot be null.")); } await geolocationService.DeleteGeolocationAsync(id); return(Ok(id)); }