Example #1
0
        public ActionResult UpdateUser(UserModel model)
        {
            User toUpdate = new User();

            toUpdate.UserID    = model.UserID;
            toUpdate.FirstName = model.FirstName;
            toUpdate.LastName  = model.LastName;
            toUpdate.UserName  = model.UserName;
            toUpdate.Password  = model.Password;
            toUpdate.RoleID_FK = model.RoleID_FK;
            toUpdate.Salt      = model.Salt;

            userBL.BLUpdateUser(toUpdate);

            return(RedirectToAction("GetUsers", "User"));
        }