public List <ShiftSchedule> GetShiftSchedulesByDepartment(int DeparmentID, string Date, int OfficeID = -1)
 {
     try
     {
         return(ShiftScheduleIntegration.GetShiftSchedulesByDepartment(DeparmentID, Date, OfficeID));
     }
     catch (Exception ex)
     {
         throw (new Exception(MethodBase.GetCurrentMethod().DeclaringType.ToString() + "." + (new System.Diagnostics.StackFrame()).GetMethod().Name, ex));
     }
 }
 public int DeleteShiftSchedule(ShiftSchedule _ShiftSchedule)
 {
     try
     {
         return(ShiftScheduleIntegration.DeleteShiftSchedule(_ShiftSchedule));
     }
     catch (Exception ex)
     {
         throw (new Exception(MethodBase.GetCurrentMethod().DeclaringType.ToString() + "." + (new System.Diagnostics.StackFrame()).GetMethod().Name, ex));
     }
 }
 public List <ShiftSchedule> GetShiftSchedulesAll(int OfficeID = -1, string searchText = null, bool showDeleted = false)
 {
     try
     {
         return(ShiftScheduleIntegration.GetShiftSchedulesAll());
     }
     catch (Exception ex)
     {
         throw (new Exception(MethodBase.GetCurrentMethod().DeclaringType.ToString() + "." + (new System.Diagnostics.StackFrame()).GetMethod().Name, ex));
     }
 }
 public int UpdateShiftSchedule(ShiftSchedule _ShiftSchedule, Boolean AllowRescheduleOfPastShiftSchedules = false)
 {
     try
     {
         return(ShiftScheduleIntegration.UpdateShiftSchedule(_ShiftSchedule, AllowRescheduleOfPastShiftSchedules));
     }
     catch (Exception ex)
     {
         throw (new Exception(MethodBase.GetCurrentMethod().DeclaringType.ToString() + "." + (new System.Diagnostics.StackFrame()).GetMethod().Name, ex));
     }
 }