public LeaveType GetLeaveTypeById(int LeaveTypeID) { try { return(LeaveTypeIntegration.GetLeaveTypeByID(LeaveTypeID)); } catch (Exception ex) { throw (new Exception(MethodBase.GetCurrentMethod().DeclaringType.ToString() + "." + (new System.Diagnostics.StackFrame()).GetMethod().Name, ex)); } }
public List <LeaveType> GetLeaveTypeList(string searchText = null, bool showDeleted = false) { try { return(LeaveTypeIntegration.GetLeaveTypeList(searchText, showDeleted)); } catch (Exception ex) { throw (new Exception(MethodBase.GetCurrentMethod().DeclaringType.ToString() + "." + (new System.Diagnostics.StackFrame()).GetMethod().Name, ex)); } }
public int UpdateLeaveType(LeaveType theLeaveType) { try { return(LeaveTypeIntegration.UpdateLeaveType(theLeaveType)); } catch (Exception ex) { throw (new Exception(MethodBase.GetCurrentMethod().DeclaringType.ToString() + "." + (new System.Diagnostics.StackFrame()).GetMethod().Name, ex)); } }