public ActionResult Edit([Bind(Include = "UserGroupID,UserGroupName")] UserGroup userGroup) { if (ModelState.IsValid) { if (userGroup.Edit(CurrentUserGroupName, userGroup.UserGroupName)) { return(RedirectToAction("UserGroup")); } } return(View(userGroup)); }