コード例 #1
0
        public ActionResult Product(ProductListPage currentPage, string productId)
        {
            var model = ProductListPageViewModelBuilder.Create(currentPage);

            // Get the product from our fake product store
            model.SelectedProduct = FakeProductDatabase.GetProduct(productId);

            return(View("Product", model));
        }
コード例 #2
0
        public override ActionResult Index(ProductListPage currentPage)
        {
            var model = ProductListPageViewModelBuilder.Create(currentPage);

            return(View(model));
        }