コード例 #1
0
 private ActionResult <IEnumerable <PedestrianRequestLogic> > EnumeratePedestrianRequests()
 {
     if (_pedestrianRequests.Items == null)
     {
         _pedestrianRequests.FillItemsList();
     }
     return(ActionResult <IEnumerable <PedestrianRequestLogic> > .GetValidResult(_pedestrianRequests.Items));
 }
コード例 #2
0
 private ActionResult <IEnumerable <DriverProfileResponseLogic> > EnumerateCurrentResponses()
 {
     if (_currentResponses.Items == null)
     {
         _currentResponses.FillItemsList();
     }
     return(ActionResult <IEnumerable <DriverProfileResponseLogic> > .GetValidResult(_currentResponses.Items));
 }
コード例 #3
0
ファイル: CityLogic.cs プロジェクト: jaenudin86/TaxiOnline
 private ActionResult <IEnumerable <PersonLogic> > EnumeratePersons()
 {
     if (_persons.Items == null)
     {
         _persons.FillItemsList();
     }
     return(ActionResult <IEnumerable <PersonLogic> > .GetValidResult(_persons.Items));
 }
コード例 #4
0
 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));
 }
コード例 #5
0
 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));
 }
コード例 #6
0
 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));
 }