コード例 #1
0
 public static BookingRequest GetRequestWithId(string requestId)
 {
     return(MaintenanceServiceStore.GetRequestWithId(requestId));
 }
コード例 #2
0
 public static bool AddNewRequestPendingApproval(BookingRequest requestInfo)
 {
     return(MaintenanceServiceStore.AddNewRequestPendingApproval(requestInfo));
 }
コード例 #3
0
 public static IEnumerable <BookingRequest> GetAllDeliveredRequests()
 {
     return(MaintenanceServiceStore.GetRequestsWithStatus(RequestStatuses.Delivered));
 }
コード例 #4
0
 public static IEnumerable <BookingRequest> GetRequestWithUserId(string userId)
 {
     return(MaintenanceServiceStore.GetRequestWithUserId(userId));
 }
コード例 #5
0
 public static IEnumerable <BookingRequest> GetAllApprovedRequests()
 {
     return(MaintenanceServiceStore.GetRequestsWithStatus(RequestStatuses.ApprovedAndWaitingDelivery));
 }
コード例 #6
0
 public static IEnumerable <BookingRequest> GetAllPendingApprovalRequests()
 {
     return(MaintenanceServiceStore.GetRequestsWithStatus(RequestStatuses.PendingApproval));
 }
コード例 #7
0
 public static IEnumerable <BookingRequest> GetAllRequests()
 {
     return(MaintenanceServiceStore.GetAllRequests());
 }
コード例 #8
0
 public static BookingRequest FinalizeRequest(string requestId)
 {
     return(MaintenanceServiceStore.ChangeRequestStateIfFound(requestId, RequestStatuses.Delivered));
 }
コード例 #9
0
 public static BookingRequest ApproveRequest(string requestId)
 {
     return(MaintenanceServiceStore.ChangeRequestStateIfFound(requestId, RequestStatuses.ApprovedAndWaitingDelivery));
 }