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