AspNet5.Controllers.TestExceptionController.GetWithCustomException C# (CSharp) Метод

GetWithCustomException() приватный Метод

private GetWithCustomException ( ) : IEnumerable
Результат IEnumerable
        public IEnumerable<string> GetWithCustomException()
        {
            _logger.LogInformation("Executing Http Get before exception");
            throw new CustomException("Yes a great exception");
        }