コード例 #1
0
        public async Task <IActionResult> Index()
        {
            var vm = new HomeIndexViewModel
            {
                TopDiseases  = await _diseaseService.GetTopAsync(),
                TopSymptoms  = await _symptomService.GetTopAsync(),
                SymptomCount = await _symptomService.GetCountAsync()
            };

            return(View(vm));
        }