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

                throw new Exception("BusinessLogic:ServiceTypesBusiness::DeleteServiceTypeById::Error occured.", ex);
            }
        }