예제 #1
0
        /// <summary>
        /// 通过id  来改变用户信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>

        public ActionResult ChangeUser(string userId, string userName, string nickname, string passWord, string userType)
        {
            T_USER user = userManageService.GetUserByKey(Convert.ToInt32(userId));

            user.USER_NAME   = userName;
            user.LOGIN_NAME  = nickname;
            user.PASSWORD    = passWord;
            user.USER_TYPE   = Convert.ToInt32(userType);
            user.IS_USE      = 1;
            user.CREATE_TIME = DateTime.Now;
            userManageService.ChangeUser(user);
            return(RedirectToAction("Index"));
        }