public ActionResult GetLocationsFromClocksList() { try { ADLocationsModel storeLocations = null; StoreInfo storeInfo = new StoreInfo(_context, HttpContext, User); storeLocations = storeInfo.GetAllStatesFromStoreInfo("all"); var locations = dbService.GetLocationsFromClocksList(storeLocations); var result = Json(locations); return(result); } catch (Exception ex) { CustomLogging.ErrorLog(ex); return(null); } }
public ActionResult GetClocksOfAllLocations(bool isPhysical) { try { dynamic allLocations = null; StoreInfo storeInfo = new StoreInfo(_context, HttpContext, User); if (allLocations == null) { allLocations = storeInfo.GetAllStatesFromStoreInfo(isPhysical.ToString()); } var result = Json(allLocations.Locations); return(result); } catch (Exception ex) { CustomLogging.ErrorLog(ex); return(null); } }