BookOnline.Controllers.CategoriesController.Edit C# (CSharp) Метод

Edit() приватный Метод

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

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