Ejemplo n.º 1
0
 public async Task <IActionResult> Index()
 {
     return(View(new HomeVM
     {
         GreatestDiseases = await _diseaseService.GetGreatestDiseasesAsync(),
         GreatestSymptoms = await _symptomService.GetGreatestSymptomsAsync(),
         SymptomsCount = await _symptomService.GetSymptomsCountAsync()
     }));
 }
Ejemplo n.º 2
0
 public async Task <IActionResult> GetGreatestSymptoms() => Ok(await _symptomService.GetGreatestSymptomsAsync());