Esempio n. 1
0
        public async Task <IActionResult> GetByDateAsync([Required] DateTime fromDate, [Required] DateTime toDate)
        {
            var prefix = "[GetByDateAsync]";

            _logger.LogInformation($"{prefix} Executing action");

            var batches = await _service.GetByDateAsync(fromDate, toDate);

            _logger.LogInformation($"{prefix} Returning {batches.Count} batches");
            return(Ok(batches));
        }