Esempio n. 1
0
    public async Task <IActionResult> CreateAsync(Guid id, [FromBody] OrganizationSetupDto input)
    {
        // Map.
        var user = new User {
            Email = input.Email
        };

        // Act.
        var passwordHash = _passwordHasher.HashPassword(input.Password);
        await _organizationRepository.AddFromProposalAsync(id, user.Email, passwordHash);

        // Return.
        return(NoContent());
    }