public void UpdateUserInfo(UserInfo userInfo) { var user = EconomicalleagueEntity.UserInfo.FirstOrDefault(x => x.openid == userInfo.openid); user.adzoneid = userInfo.adzoneid; EconomicalleagueEntity.SaveChangesAsync(); }
public void AddUserInfo(UserInfo userInfo) { EconomicalleagueEntity.UserInfo.Add(userInfo); EconomicalleagueEntity.SaveChangesAsync(); }