BookManagement.Controllers.AccountController.Delete C# (CSharp) Метод

Delete() публичный Метод

public Delete ( int id ) : System.Web.Mvc.ActionResult
id int
Результат System.Web.Mvc.ActionResult
        public ActionResult Delete(int id = 0)
        {
            var allCategories = from c in db.Categorys select c;
            ViewBag.cate = allCategories;

            UserProfile user = db.UserProfiles.Find(id);
            if (user == null)
            {
                return HttpNotFound();
            }
            return View(user);
        }