AdventureWorks.Controllers.DepartmentsController.Edit C# (CSharp) Метод

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

private Edit ( [ Include = "DepartmentID,Name,GroupName,ModifiedDate")]Departmentdepartment ) : System.Web.Mvc.ActionResult
Include [
Результат System.Web.Mvc.ActionResult
        public ActionResult Edit([Bind(Include="DepartmentID,Name,GroupName,ModifiedDate")] Department department)
        {
            if (ModelState.IsValid)
            {
                db.Entry(department).State = EntityState.Modified;
                db.SaveChanges();
                return RedirectToAction("Index");
            }
            return View(department);
        }

Same methods

DepartmentsController::Edit ( short id ) : System.Web.Mvc.ActionResult