public WebApiResult Post([FromBody] Bike bike, [FromQuery] string currentLocation) { try { CallContext.AntiforgeryTokenValidate(true); return(Helper.OK(() => BikeService.Post(bike, string.IsNullOrEmpty(currentLocation) ? null : JsonConvert.DeserializeObject <Location?>(currentLocation)))); } catch (Exception ex) { return(Helper.HandleException(ex)); } }