Exemple #1
0
        //
        // Products/Category/1
        public void Category(int id)
        {
            var category = northwind.GetCategoryById(id);

            PropertyBag["category"] = category;
            base.RenderView("List");
        }
Exemple #2
0
        //
        // Products/Category/1

        public ActionResult Category(int id)
        {
            var category = northwind.GetCategoryById(id);

            return(View("List", category));
        }