public static int InsertLeaveApplication(LeaveApplication _LeaveApplication)
 {
     try
     {
         return(LeaveApplicationIntegration.InsertLeaveApplication(_LeaveApplication));
     }
     catch (Exception ex)
     {
         throw (new Exception(MethodBase.GetCurrentMethod().DeclaringType.ToString() + "." + (new System.Diagnostics.StackFrame()).GetMethod().Name, ex));
     }
 }
 public static List <LeaveApplication> GetDepartmentLeaveApplicationsAll(int DepartmenID, DateTime DateFrom, DateTime DateTo, int OfficeID = -1)
 {
     try
     {
         return(LeaveApplicationIntegration.GetDepartmentLeaveApplicationsAll(DepartmenID, DateFrom, DateTo, OfficeID));
     }
     catch (Exception ex)
     {
         throw (new Exception(MethodBase.GetCurrentMethod().DeclaringType.ToString() + "." + (new System.Diagnostics.StackFrame()).GetMethod().Name, ex));
     }
 }
 /// <summary>
 /// ReportingOfficer wise
 /// </summary>
 public static List <LeaveApplication> GetPeningApplicationsAllByReportingEmployee(int EmployeeID = -1)
 {
     try
     {
         return(LeaveApplicationIntegration.GetPeningApplicationsByReportingEmployee(EmployeeID));
     }
     catch (Exception ex)
     {
         throw (new Exception(MethodBase.GetCurrentMethod().DeclaringType.ToString() + "." + (new System.Diagnostics.StackFrame()).GetMethod().Name, ex));
     }
 }
 public static List <LeaveApplication> GetEmployeePendingLeaveApplicationsAll(int EmployeeID, DateTime DateFrom, DateTime DateTo)
 {
     try
     {
         return(LeaveApplicationIntegration.GetEmployeePendingLeaveApplicationsAll(EmployeeID, DateFrom, DateTo));
     }
     catch (Exception ex)
     {
         throw (new Exception(MethodBase.GetCurrentMethod().DeclaringType.ToString() + "." + (new System.Diagnostics.StackFrame()).GetMethod().Name, ex));
     }
 }