Beispiel #1
0
        public async Task <IdentityResult> CreateAsync(ApplicationUser user, CancellationToken cancellationToken)
        {
            cancellationToken.ThrowIfCancellationRequested();



            var Parameters = new
            {
                @UserId             = user.Id.ToString(),
                @UserName           = user.UserName,
                @Email              = user.Email,
                @Password           = user.PasswordHash,
                @NormalizedUserName = user.NormalizedUserName,
                @FirstName          = user.FirstName,
                @LastName           = user.LastName,
                @NormalizedEmail    = user.NormalizedEmail
            };

            await _userData.AddNewUser <dynamic>(Parameters);

            return(IdentityResult.Success);
        }