Exemplo n.º 1
0
        public static bool AddEmployBLL(Employ employ)
        {
            bool employadded = false;

            try
            {
                if (ValidateEmploy(employ))
                {
                    EmployDAL obj = new EmployDAL();
                    employadded = obj.AddEmployDAL(employ);
                }
            }
            catch (Exception ex)
            {
                throw new EmployExceptions.EmployException(ex.Message);
            }
            return(employadded);
        }
Exemplo n.º 2
0
        public static bool AddEmployBL(Employ employ)
        {
            bool employAdded = false;

            try
            {
                if (Validate(employ))
                {
                    EmployDAL employDAL = new EmployDAL();
                    employAdded = employDAL.AddEmployDAL(employ);
                }
            }
            catch (EmployException)
            {
                throw;
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(employAdded);
        }