コード例 #1
0
        public bool DeleteEmployeeById(int empId)
        {
            try
            {
                using (var repository = new EmployeesRepository())
                {
                    return(repository.DeleteById(empId));
                }
            }
            catch (Exception ex)
            {
                //Log exception error
                _loggingHandler.LogEntry(ExceptionHandler.GetExceptionMessageFormatted(ex), true);

                throw new Exception("BusinessLogic:EmployeesBusiness::DeleteEmployeeById::Error occured.", ex);
            }
        }