BookStore_NETMVC.Controllers.CategoryController.DeleteConfirmed C# (CSharp) Method

DeleteConfirmed() private method

private DeleteConfirmed ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult
        public ActionResult DeleteConfirmed(int id)
        {
            Category category = db.Category.Find(id);
            db.Category.Remove(category);
            db.SaveChanges();
            return RedirectToAction("Index");
        }