Пример #1
0
        public string Fizz()
        {
            _logger.LogInformation("Hey, I should say Fizz before calling the method");
            var result = _fizzBuzzService.Fizz();

            _logger.LogInformation("Hey, I should say again Fizz after calling the method");
            return(result);
        }
Пример #2
0
 public IActionResult Buzz()
 {
     return(Ok(_fizzBuzzService.Fizz()));
 }