public async Task <IActionResult> Get() { _logger.LogInformation(0, "Get all Trace"); if (!ModelState.IsValid) { return(BadRequest()); } var traces = await _traceRepository.GetAllAsync(); if (traces == null || traces.Count() == 0) { return(NotFound()); } else { return(this.Ok(traces)); } }