public async Task AddLoginAsync(ApplicationUser user, UserLoginInfo login, CancellationToken cancellationToken)
        {
            cancellationToken.ThrowIfCancellationRequested();

            var createUserLoginDto = new CreateUserLoginDto
            {
                LoginProvider       = login.LoginProvider,
                ProviderKey         = login.ProviderKey,
                ProviderDisplayName = login.ProviderDisplayName,
                UserId = user.Id
            };

            await _userLoginRepository.Create(createUserLoginDto);
        }
Esempio n. 2
0
 public void Create(UserLoginModel model)
 {
     _userLoginRepository.Create(model);
 }
 public void Handle(RegisterNewUserCommand command)
 {
     _userLoginRepository.Create(command.Username, command.Password);
 }
 public void CreateUserLogin(UserLoginRequest request)
 {
     _userLoginRepository.Create(request);
 }