예제 #1
0
        public async Task <IActionResult> Index()
        {
            var model = new MainViewModel
            {
                Institutions        = await _institutionService.GetAllAsync(),
                BagQuantity         = await _donationService.GetBagsQuantity(),
                InstitutionQuantity = await _donationService.GetSupportedOrganization()
            };

            return(View(model));
        }