Esempio n. 1
0
        public ActionResult About()
        {
            var commercemodel = new CommerceModel()
            {
                User     = AccountServices.GetConsumerById(1),
                Products = InventoryServices.GetProducts()
            };

            return(View(commercemodel));
        }
Esempio n. 2
0
        public ActionResult Index()
        {
            var commercemodel = new CommerceModel()
            {
                User     = AccountServices.GetConsumerById(1),
                Products = InventoryServices.GetProducts(),
                Cart     = ShoppingServices.GetCart(30)
            };

            return(View(commercemodel));
        }