public async Task RemoveLoginAsync(User user, UserLoginInfo login) { await _userLoginRepository.DeleteAsync( ul => ul.UserId == user.Id && ul.LoginProvider == login.LoginProvider && ul.ProviderKey == login.ProviderKey ); }
public async Task <bool> DeleteAsync(UserLogin model) { var result = await _userLoginRepository.DeleteAsync(model.Id); if (result) { if (_logger.IsEnabled(LogLevel.Information)) { _logger.LogInformation($"User login with id {model.Id} was deleted successfully"); } CancelTokens(model); } return(result); }