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)); }
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)); }
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)); }
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)); }