public async Task <ApiResult> ActivateUserEmail(int userId, CancellationToken cancellationToken) { var user = await _userManager.FindByIdAsync(userId.ToString()); await _userRepository.ActivateUserEmail(user, cancellationToken); return(Ok()); }
public async Task <ApiResult> ActivateUserEmail(int userId, CancellationToken cancellationToken) { var user = await _userManager.FindByIdAsync(userId.ToString()); await _userRepository.ActivateUserEmail(user, cancellationToken); return(Ok()); }