Пример #1
0
 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())); }
 }
Пример #2
0
 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())); }
 }