public WebApiResult GetList([FromQuery] string filter, [FromQuery] string paging, [FromQuery] string currentLocation) { try { return(Helper.OK(Helper.AddAntiforgeryToken(() => BikeService.GetList( JsonConvert.DeserializeObject <BusinessEntities.Bikes.BikeListFilter>(filter), JsonConvert.DeserializeObject <PagingInfo>(paging), string.IsNullOrEmpty(currentLocation) ? null : JsonConvert.DeserializeObject <Location?>(currentLocation) )))); } catch (Exception ex) { return(Helper.HandleException(ex)); } }