BookStore_NETMVC.Controllers.CategoryController.Edit C# (CSharp) Méthode

Edit() private méthode

private Edit ( Category category ) : System.Web.Mvc.ActionResult
category BookStore_NETMVC.DAL.Category
Résultat System.Web.Mvc.ActionResult
        public ActionResult Edit(Category category)
        {
            if (ModelState.IsValid)
            {
                db.Entry(category).State = EntityState.Modified;
                db.SaveChanges();
                return RedirectToAction("Index");
            }
            return View(category);
        }

Same methods

CategoryController::Edit ( int id ) : System.Web.Mvc.ActionResult