// GET: Home public ActionResult Index() { CategoryDao categoryDao = new CategoryDao(); ProductsDao productDao = new ProductsDao(); ShoppingCart Cart = (ShoppingCart)Session["cart"]; if (Cart == null) { Session["cart"] = new ShoppingCart(); } IndexData data = new IndexData { listCategory = categoryDao.GetCategory(), featuredProducts = productDao.GetFeaturedProducts(), lastestProducts = productDao.GetLastestProducts() }; return(View(data)); }