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

Edit() private method

private Edit ( Category category ) : System.Web.Mvc.ActionResult
category BookStore_NETMVC.DAL.Category
return 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