//CaseStudies Page View Model// public IActionResult CaseStudies() { var model = new HomeViewModel { Categories = _homeRepository.GetCategories(), Settings = _homeRepository.GetSettings(), Agents = _homeRepository.GetAgents(), }; return(View(model)); }
//About Page View Model public IActionResult About() { var model = new AboutUsViewModel { Settings = _homeRepository.SingleSetting(), Agents = _homeRepository.GetAgents(), Brands = _homeRepository.GetBrands(), AboutUs = _homeRepository.GetSingleAbout() }; return(View(model)); }