BookManagement.Web.Controllers.BookController.Edit C# (CSharp) Method

Edit() public method

public Edit ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult
        public ActionResult Edit(int id = 0)
        {
            ViewBag.Categories = db.Categories.ToList();
            Book book = db.Books.Find(id);
            if (book == null)
            {
                return HttpNotFound();
            }

            ViewBag.Categories = db.Categories.ToList();
            return View(book);
        }

Same methods

BookController::Edit ( Book book, System.Web.HttpPostedFileBase PathImage ) : System.Web.Mvc.ActionResult