Ejemplo n.º 1
0
        public ActionResult EditUserInfo(string UserId, UserModel model)
        {
            if (ModelState.IsValid)
            {
                var info = DBBridge.EditUser(UserId, model.InsId, model.UserName, model.MailAddress);

                if (info == 1)
                {
                    ViewBag.Message = "The user information is changed successfully!";
                }
                else
                {
                    ViewBag.Message = "The user information cannot be changed!";
                }
            }

            return(View());
        }