public IActionResult Index() { var homeViewModel = new HomeViewModel(); homeViewModel.CandyOnSale = _candyRepository.GetCandyOnSale(); return(View(homeViewModel)); }
public IActionResult Index() { var homeViewModel = new HomeViewModel(); homeViewModel.CandyOnSale = _candyRepository.GetCandyOnSale(); return(View(homeViewModel)); }