public async Task <int> AddCofoundryUserAsync(AddCofoundryUserCommand command)
        {
            await ExtendableContentRepository.ExecuteCommandAsync(command);

            return(command.OutputUserId);
        }
Beispiel #2
0
 /// <summary>
 /// Adds a user to the Cofoundry user area and sends a welcome notification
 /// containing a generated password which must be changed at first login.
 /// </summary>
 /// <param name="executionContext">Optional execution context to use when executing the command. Useful if you need to temporarily elevate your permission level.</param>
 public Task AddCofoundryUserAsync(AddCofoundryUserCommand command, IExecutionContext executionContext = null)
 {
     return(_commandExecutor.ExecuteAsync(command, executionContext));
 }