public async Task WhenICreateTheUsersWithTheFollowingInformations(Table table) { var dtos = table.CreateSet <CreateAUserDto>(); foreach (var dto in dtos) { _userContext.CreatedResource = await _usersApi.Create(dto); } }
public async Task <UserModel> CreateUserAsync() { return(await _userApi.Create(BuildUserModel()).ConfigureAwait(false)); }
public async Task <IActionResult> Create([FromBody] CreateUserRequest request) { var result = await _usersApi.Create(request); return(Ok(result)); }