예제 #1
0
        public void CallRepositoryInModel()
        {
            try
            {
                _repository.SaveEntity();
            }
            catch (LoggerRepositoryException ex)
            {
                var lmException = new LoggerModelException("Failed to save the entity in the Model.", ex);
                lmException.Data.Add("ModelData1", 5);
                lmException.Data.Add("ModelData2", true);

                throw lmException;
            }
        }