public static BookingRequest GetRequestWithId(string requestId) { return(MaintenanceServiceStore.GetRequestWithId(requestId)); }
public static bool AddNewRequestPendingApproval(BookingRequest requestInfo) { return(MaintenanceServiceStore.AddNewRequestPendingApproval(requestInfo)); }
public static IEnumerable <BookingRequest> GetAllDeliveredRequests() { return(MaintenanceServiceStore.GetRequestsWithStatus(RequestStatuses.Delivered)); }
public static IEnumerable <BookingRequest> GetRequestWithUserId(string userId) { return(MaintenanceServiceStore.GetRequestWithUserId(userId)); }
public static IEnumerable <BookingRequest> GetAllApprovedRequests() { return(MaintenanceServiceStore.GetRequestsWithStatus(RequestStatuses.ApprovedAndWaitingDelivery)); }
public static IEnumerable <BookingRequest> GetAllPendingApprovalRequests() { return(MaintenanceServiceStore.GetRequestsWithStatus(RequestStatuses.PendingApproval)); }
public static IEnumerable <BookingRequest> GetAllRequests() { return(MaintenanceServiceStore.GetAllRequests()); }
public static BookingRequest FinalizeRequest(string requestId) { return(MaintenanceServiceStore.ChangeRequestStateIfFound(requestId, RequestStatuses.Delivered)); }
public static BookingRequest ApproveRequest(string requestId) { return(MaintenanceServiceStore.ChangeRequestStateIfFound(requestId, RequestStatuses.ApprovedAndWaitingDelivery)); }