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); }
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); }