private ActionResult <IEnumerable <PedestrianRequestLogic> > EnumeratePedestrianRequests() { if (_pedestrianRequests.Items == null) { _pedestrianRequests.FillItemsList(); } return(ActionResult <IEnumerable <PedestrianRequestLogic> > .GetValidResult(_pedestrianRequests.Items)); }
private ActionResult <IEnumerable <DriverProfileResponseLogic> > EnumerateCurrentResponses() { if (_currentResponses.Items == null) { _currentResponses.FillItemsList(); } return(ActionResult <IEnumerable <DriverProfileResponseLogic> > .GetValidResult(_currentResponses.Items)); }
private ActionResult <IEnumerable <PersonLogic> > EnumeratePersons() { if (_persons.Items == null) { _persons.FillItemsList(); } return(ActionResult <IEnumerable <PersonLogic> > .GetValidResult(_persons.Items)); }
private ActionResult <IEnumerable <CityLogic> > EnumerateCities() { if (_cities.Items == null) { _cities.FillItemsList(); } return(_cities.Items == null ? ActionResult <IEnumerable <CityLogic> > .GetErrorResult(new DataServiceException(new Exception())) : ActionResult <IEnumerable <CityLogic> > .GetValidResult(_cities.Items)); }
private ActionResult <IEnumerable <DriverLogic> > EnumerateDrivers() { if (_drivers.Items == null) { _drivers.FillItemsList(); } return(_drivers.Items == null ? ActionResult <IEnumerable <DriverLogic> > .GetErrorResult(new Exception()) : ActionResult <IEnumerable <DriverLogic> > .GetValidResult(_drivers.Items)); }
private ActionResult <IEnumerable <PedestrianProfileRequestLogic> > EnumerateRequests() { if (_requests.Items == null) { _requests.FillItemsList(); } return(_requests.Items == null ? ActionResult <IEnumerable <PedestrianProfileRequestLogic> > .GetErrorResult(new Exception()) : ActionResult <IEnumerable <PedestrianProfileRequestLogic> > .GetValidResult(_requests.Items)); }