Exemplo n.º 1
0
        public async Task <IdentityResult> CreateAsync(User user, CancellationToken cancellationToken)
        {
            if (user.Contact != null)
            {
                user.Contact = await _memberService.CreateContactAsync(user.Contact);
            }
            var dtoUser   = user.ToUserDto();
            var resultDto = await _platformSecurityApi.CreateAsyncAsync(dtoUser);

            return(resultDto.ToIdentityResult());
        }