public static int setUserInfo(string username, string userid, string usersex, string userlocation, string usersignature, string userrhythm, string useremotion, string usertype, string userlanguage, string usersinger) { Modeluserinfo userinfo = new Modeluserinfo(); userinfo.userId = int.Parse(userid); userinfo.userSex = int.Parse(usersex); userinfo.userLocation = userlocation; userinfo.userSignature = usersignature; userinfo.userRhythm = userrhythm; userinfo.userEmotion = useremotion; userinfo.userType = usertype; userinfo.userLanguage = userlanguage; userinfo.userSinger = usersinger; blluserinfo.updateUserInfo(userinfo); blluser.updateUserName(int.Parse(userid), username); new updateuserinfo().updateusername(username); return(1); }
public static int save(int id, string name, int valid) { blluser.updateUserName(id, name); blluser.setNovalid(id, valid); return(0); }