Beispiel #1
0
        public async Task WhenICreateTheUsersWithTheFollowingInformations(Table table)
        {
            var dtos = table.CreateSet <CreateAUserDto>();

            foreach (var dto in dtos)
            {
                _userContext.CreatedResource = await _usersApi.Create(dto);
            }
        }
Beispiel #2
0
 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));
        }