Example #1
0
 public IActionResult Index(HomeViewModel vm)
 {
     vm.UpdatePageContents(portalService.HomeItems(vm.ItemSearch, vm.Category));
     vm.Categories = portalService.CategorySelectList();
     portalService.SetViewDataUser(ViewData);
     return(View("Index", vm));
 }