BookStore_NETMVC.Controllers.CategoryController.Edit C# (CSharp) 메소드

Edit() 개인적인 메소드

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