Example #1
0
        public ActionResult Edit(int id)
        {
            var category = ParentCategory.GetCategory(id, true).First();

            return(View("Create", category));
        }
Example #2
0
        // GET: ParentCategory
        public ActionResult Index()
        {
            var categoryList = ParentCategory.GetCategory(null, true);

            return(View(categoryList));
        }