Пример #1
0
        public MembersModel GetById(int id)
        {
            try
            {
                return(_MembersRepository.GetById(id));
            }
            catch (Exception ex)
            {
                while (ex.Message.IndexOf("See the inner exception for details.") > 0)
                {
                    ex = ex.InnerException;
                }

                _logger.LogError(ex.Message);

                throw ex;
            }
        }