public async Task <JsonResult> GetByCategory(string cat, string api) { try { var data = LocationStorageService.GetByCategory(cat, Guid.Parse(api)); return(Success(LocationStorageVM.MsToVMs(data))); } catch { return(Failed(MessageUtility.ServerError())); } }
public async Task <JsonResult> GetByLocationRadius(string lon, string lat, string cat, string api, string rad) { try { var data = LocationStorageService.GetByCategoryLocationRadius(float.Parse(lon) + float.Parse(rad), float.Parse(lat) + float.Parse(rad), cat, Guid.Parse(api)); return(Success(LocationStorageVM.MsToVMs(data))); } catch { return(Failed(MessageUtility.ServerError())); } }