예제 #1
0
 /// <summary>
 /// Create a new user.
 /// </summary>
 /// <param name="profile">The user's profile</param>
 /// <param name="password">The user's password.</param>
 /// <returns></returns>
 public Task Create(UserProfileInfo profile, string password) =>
 _api.Create(new CreateUser()
 {
     Profile = profile, Credentials = new UserCredentialsInfo {
         Password = password
     }
 });
예제 #2
0
 /// <summary>
 /// Updates the profile information of an already existing user.
 /// </summary>
 public Task Update(UserProfileInfo profile) => _api.UpdateProfile(_userId, profile);