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