/// <summary> /// Adds a new role to a user area with a specific set of permissions. /// </summary> /// <param name="command">Command to run.</param> /// <param name="executionContext">Optional execution context to use when executing the query. Useful if you need to temporarily elevate your permission level.</param> public Task AddRoleAsync(AddRoleCommand command, IExecutionContext executionContext = null) { return(_commandExecutor.ExecuteAsync(command, executionContext)); }
public async Task <int> AddAsync(AddRoleCommand command) { await ExtendableContentRepository.ExecuteCommandAsync(command); return(command.OutputRoleId); }