Exemple #1
0
        public ActionResult Index(int productId, int id)
        {
            var productRelatedItem = new ProductRelatedItemModel()
            {
                Id          = 1,
                Label       = "Product Related Item",
                ProductId   = productId,
                ParentId    = id,
                ParentLabel = "Product " + id.ToString()
            };

            return(View(productRelatedItem));
        }
        public ActionResult Index(int productId, int id)
        {
            var productRelatedItem = new ProductRelatedItemModel()
            {
                Id = 1,
                Label = "Product Related Item",
                ProductId = productId,
                ParentId = id,
                ParentLabel = "Product " + id.ToString()
            };

            return View(productRelatedItem);
        }