///REST API call - AJAX - List of statuses ////~/Scripts/Apps/HomeIndex.js - loadStatus() public async Task <IHttpActionResult> Get() { var oStatusFactory = new StandingDataFactory(); List <StopStatus> lstStatuses = null; try { lstStatuses = await oStatusFactory.ListStopStatuses(); } catch (Exception oException) { oException.Log("Status List"); return(this.InternalServerError()); } return(this.Ok(lstStatuses)); }
///REST API call - AJAX - List of locations ////~/Scripts/Apps/HomeIndex.js - loadLocations() public async Task <IHttpActionResult> Get() { var oLocationFactory = new StandingDataFactory(); List <Location> lstLocations = null; try { lstLocations = await oLocationFactory.ListLocations(); } catch (Exception oException) { oException.Log("Location List"); return(this.InternalServerError()); } return(this.Ok(lstLocations)); }