private static ScheduleStatuses GetClassStatus(Request.Statuses itemStatus) { switch (itemStatus) { case Request.Statuses.Pending: return(ScheduleStatuses.Pending); case Request.Statuses.Proccessing: return(ScheduleStatuses.Pending); case Request.Statuses.Conflict: return(ScheduleStatuses.Conflict); case Request.Statuses.Closed: return(ScheduleStatuses.Closed); case Request.Statuses.Accepted: return(ScheduleStatuses.Accepted); default: throw new ArgumentOutOfRangeException(nameof(itemStatus), itemStatus, null); } }
private static EnrollmentStatus GetStatus(Request.Statuses requestStatus) { switch (requestStatus) { case Request.Statuses.Pending: return(EnrollmentStatus.Pending); case Request.Statuses.Proccessing: return(EnrollmentStatus.Processing); case Request.Statuses.Conflict: return(EnrollmentStatus.Conflict); case Request.Statuses.Closed: return(EnrollmentStatus.Closed); case Request.Statuses.Accepted: return(EnrollmentStatus.Accepted); default: throw new ArgumentOutOfRangeException(nameof(requestStatus), requestStatus, null); } }