public async Task <IActionResult> Index() { return(View(new HomeVM { GreatestDiseases = await _diseaseService.GetGreatestDiseasesAsync(), GreatestSymptoms = await _symptomService.GetGreatestSymptomsAsync(), SymptomsCount = await _symptomService.GetSymptomsCountAsync() })); }
public async Task <IActionResult> GetGreatest() => Ok(await _diseaseService.GetGreatestDiseasesAsync());