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> GetCount() => Ok(new { Count = await _symptomService.GetSymptomsCountAsync() });