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

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