public static void SetUser(DXUser user) { var user2 = new DXUser2( user.UID, user.UserName, user.Email); db.SetUserImpl(user2); }
private void SetUserImpl(DXUser2 user) { if (this.HasUserImpl()) { var user2 = this.GetUserImpl(); user.Id = user2.Id; collection.Update(user); } else { collection.Insert(user); } }