コード例 #1
0
        public ActionResult UpdatePost(int id, string name, bool admin)
        {
            Models.User editUser = Models.User.Find(id);
            editUser.Edit(name, admin);

            return(RedirectToAction("ViewAll"));
        }