Exemple #1
0
        public async Task <IActionResult> SignUp(SignUpCommand command)
        {
            command.BindId(c => c.Id);
            await _identityService.SignUpAsync(command.Id,
                                               command.Email, command.Password, command.Role);

            return(NoContent());
        }
 public async Task <RegisterUserResponse> SignUp([Body] SignUpCommand command)
 {
     command.BindId(c => c.Id);
     return(await _identityService.SignUpAsync(command.Id,
                                               command.Email, command.FirstName, command.LastName, command.Password, command.Role));
 }
        public async Task <IActionResult> SignUp(SignUpCommand command)
        {
            await _dispatcher.SendAsync(command.BindId(c => c.Id));

            return(Ok());
        }