public IQueryable <ServiceRequest> GetServiceRequests()
 {
     //if (CurrentUser.Id > 0)
     return
         ((CurrentUser != null) ? _serviceRequests.GetProviderRequests(CurrentUser.Id, (int)RequestStatus.InProgress, false)
          .AsQueryable():null);
     //else return null;
 }
 public IQueryable <ServiceRequest> GetServiceRequests()
 {
     return((CurrentUser != null) ?_serviceRequests.GetProviderRequests(CurrentUser.Id, (int)RequestStatus.Refused, false).AsQueryable():null);
 }
Example #3
0
 public IQueryable <ServiceRequest> GetServiceRequests()
 {
     return((CurrentUser != null) ? _serviceRequests.GetProviderRequests(CurrentUser.Id).AsQueryable() : null);
 }