public async Task <IActionResult> Get(string origin, DateTime fromDate, DateTime toDate) { _logger.LogInformation(0, "Get trace by range"); if (!ModelState.IsValid) { return(BadRequest()); } var traces = await _traceRepository.GetByRangeAsync(origin, fromDate, toDate); if (traces == null || traces.Count() == 0) { return(NotFound()); } else { return(this.Ok(traces)); } }