public ActionResult UpdatePost(int id, string name, bool admin) { Models.User editUser = Models.User.Find(id); editUser.Edit(name, admin); return(RedirectToAction("ViewAll")); }