コード例 #1
0
        public static bool DeleteEmployBL(int employID)
        {
            bool employDeleted = false;

            try
            {
                if (employID > 0)
                {
                    EmployDAL employDAL = new EmployDAL();
                    employDeleted = employDAL.DeleteEmployDAL(employID);
                }
                else
                {
                    throw new EmployException("Invalid Employ ID");
                }
            }
            catch (EmployException)
            {
                throw;
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(employDeleted);
        }
コード例 #2
0
        public static string DeleteEmployBLL(int id)
        {
            string employdelete = string.Empty;

            try
            {
                if (id > 0)
                {
                    EmployDAL emsdal = new EmployDAL();
                    employdelete = emsdal.DeleteEmployDAL(id);
                }
                else
                {
                    throw new EmployExceptions.EmployException("Invalid Employ ID");
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(employdelete);
        }