public async Task <IActionResult> GetAsync(string id) { var result = await _heroesProvider.GetAsync(id); if (result != null) { return(Ok(result)); } return(NotFound()); }