public ActionResult Index() { PublicViewModel publicViewModel = new PublicViewModel(); if (Session["CompanySetting"] != null) { publicViewModel.CompanySetting = (CompanySetting)Session["CompanySetting"]; } else { publicViewModel.CompanySetting = CompanySettingsManager.GetCompanySettings(1); } //publicViewModel.OurClients = ClientManager.GetAllClients(); publicViewModel.Banners = HomeManager.GetAllBanners(); publicViewModel.ProductCategories = CategoryManager.GetAllProductCategory(); return(View(publicViewModel)); }
public ActionResult Banner() { List <Banner> allBanners = HomeManager.GetAllBanners(); return(View(allBanners)); }