Beispiel #1
0
        public async Task <IActionResult> PostUser([FromBody] CreateUserDto request)
        {
            var user = await userService.CreateAsync(request.Email, request.ToValues());

            var response = UserDto.FromUser(user, Resources);

            return(Ok(response));
        }
Beispiel #2
0
        public async Task <IActionResult> PostUser([FromBody] CreateUserDto request)
        {
            var user = await userManager.CreateAsync(userFactory, request.ToValues());

            var response = UserDto.FromUser(user, this);

            return(Ok(response));
        }
Beispiel #3
0
        public async Task <IActionResult> PostUser([FromBody] CreateUserDto request)
        {
            var user = await userManager.CreateAsync(userFactory, request.ToValues());

            userEvents.OnUserRegistered(user);

            var response = UserDto.FromUser(user, Resources);

            return(Ok(response));
        }
Beispiel #4
0
        public async Task <IActionResult> PostUser([FromBody] CreateUserDto request)
        {
            var user = await userManager.CreateAsync(userFactory, request.ToValues());

            var response = new UserCreatedDto {
                Id = user.Id
            };

            return(Ok(response));
        }