コード例 #1
0
 //更新用户基本信息
 public string updateUserBaseinfo(string id, string userName, string userAddress, string userSex, string userMarry, string userBirthday, string userDes)
 {
     curUser              = user.GetModel(Convert.ToInt32(id));
     curUser.userName     = userName;
     curUser.userAddress  = userAddress;
     curUser.userSex      = userSex;
     curUser.userMarry    = userMarry;
     curUser.userBirthday = userBirthday;
     curUser.userDes      = userDes;
     return(user.Update(curUser).ToString());
 }
コード例 #2
0
ファイル: forgetpwd.asmx.cs プロジェクト: RoyalGroup/Langlang
        public bool chongzhi(string userPwd, string userName)
        {
            List <starweibo.Model.userInfo> shengqing = new List <starweibo.Model.userInfo>();

            starweibo.BLL.userInfo oneshenqing = new starweibo.BLL.userInfo();
            shengqing            = oneshenqing.GetModelList("userName='******'");
            shengqing[0].userPwd = userPwd;
            return(oneshenqing.Update(shengqing[0]));
        }