Esempio n. 1
0
        public bool DeletePersonById(int empId)
        {
            try
            {
                using (var repository = new PersonsRepository())
                {
                    return(repository.DeleteById(empId));
                }
            }
            catch (Exception ex)
            {
                //Log exception error
                _loggingHandler.LogEntry(ExceptionHandler.GetExceptionMessageFormatted(ex), true);

                throw new Exception("BusinessLogic:PersonsBusiness::DeletePersonById::Error occured.", ex);
            }
        }