Exemple #1
0
        /// <summary>
        /// 刪除員工資料
        /// </summary>
        public bool DeleteEmployeeData(int empId)
        {
            bool result = false;

            using (EmployeeAuthorityDataAccess empAuthDao = new EmployeeAuthorityDataAccess())
            {
                Employee entity = new Employee()
                {
                    EmpId = empId
                };

                result   = empAuthDao.Delete <Employee>(entity);
                dbErrMsg = empAuthDao.GetErrMsg();
            }

            return(result);
        }