示例#1
0
        public ActionResult DeleteConfirmed(int id)
        {
            Category category;

            using (Repos repo = new Repos())
            {
                category = repo.GetCategoryByID(id);
                repo.DeleteCategory(category.CategoryID);
            }
            return(RedirectToAction("Index"));
        }