public async Task <IActionResult> Get(int id) { var study = await _repository.FindAsync(id); if (study == null) { return(NotFound()); } return(Ok(study)); }
public async Task <IActionResult> Get(int id) { var study = await _repository.FindAsync(id); if (study == null) { _log.LogDebug("No studies found. Return 404 NotFound"); return(NotFound()); } return(Ok(study)); }