Esempio n. 1
0
        public bool LoginUser(LoginEntity login)
        {
            bool success = false;

            try
            {
                success = LeaveBL.LoginUser(login);
            }
            catch (LeaveException ex)
            {
                CustomException(ex.GetType().ToString(), ex.Message);
            }
            return(true);
        }
Esempio n. 2
0
        public List <LeaveEntity> GetAllReasons()
        {
            List <LeaveEntity> reasons = null;

            try
            {
                reasons = LeaveBL.GetAllReasons();
            }
            catch (LeaveException)
            {
                throw;
            }
            return(reasons);
        }
Esempio n. 3
0
        public bool Addleave(LeaveEntity leave)
        {
            bool added = false;

            try
            {
                added = LeaveBL.AddLeave(leave);
            }
            catch (LeaveException ex)
            {
                CustomException(ex.GetType().ToString(), ex.Message);
            }

            return(added);
        }