public async Task <bool> IsValidPasswordAsync(int userId, string hashedPassword) { if (userId <= 0) { throw new ArgumentOutOfRangeException(nameof(userId)); } if (string.IsNullOrEmpty(hashedPassword)) { throw new ArgumentException("Value cannot be null or empty.", nameof(hashedPassword)); } return(await _authStorage.IsValidPasswordAsync(userId, hashedPassword)); }