public bool LoginUser(LoginEntity login) { bool success = false; try { success = LeaveBL.LoginUser(login); } catch (LeaveException ex) { CustomException(ex.GetType().ToString(), ex.Message); } return(true); }
public List <LeaveEntity> GetAllReasons() { List <LeaveEntity> reasons = null; try { reasons = LeaveBL.GetAllReasons(); } catch (LeaveException) { throw; } return(reasons); }
public bool Addleave(LeaveEntity leave) { bool added = false; try { added = LeaveBL.AddLeave(leave); } catch (LeaveException ex) { CustomException(ex.GetType().ToString(), ex.Message); } return(added); }