BookManager.Web.Controllers.AdminController.DeleteCategory C# (CSharp) Метод

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

public DeleteCategory ( int id ) : System.Web.Mvc.ActionResult
id int
Результат System.Web.Mvc.ActionResult
        public ActionResult DeleteCategory(int? id)
        {
            if (id == null)
            {
                return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
            }
            var genre = db.Categories.Find(id);
            if (genre == null)
            {
                return HttpNotFound();
            }
            return View(genre);
        }