public async Task <ActionResult <string> > Get([FromRoute, Required] int id, CancellationToken cancellationToken) { var sampleData = await _repository.GetSampleData(id, cancellationToken); if (string.IsNullOrEmpty(sampleData)) { return(NotFound()); } return(Ok(sampleData)); }