public async Task <IActionResult> GetAll() { using (var logger = _loggerManager.CreateLogger()) { var result = await _dayService.GetAllAsync(); if (result.Any()) { logger.LogInformation($"Retrieve [{result.ToList().Count}] of days from database."); return(Ok(result)); } logger.LogInformation($"No days retreived from database."); return(NoContent()); } }