Table of Contents

Interface IUserProfileRepository

Namespace
Builvero.Application.Interfaces.Repositories
Assembly
Builvero.Application.dll

Defines the contract for user profile data access operations.

public interface IUserProfileRepository

Methods

PhoneNumberExistsAsync(string, Guid?, CancellationToken)

Checks if a user profile with the specified phone number exists in the database.

Task<bool> PhoneNumberExistsAsync(string phoneNumber, Guid? excludeUserId = null, CancellationToken cancellationToken = default)

Parameters

phoneNumber string

The phone number to check.

excludeUserId Guid?

Optional user ID to exclude from the check (useful when updating own profile).

cancellationToken CancellationToken

Cancellation token to cancel the operation.

Returns

Task<bool>

True if a profile with the phone number exists (excluding the specified user); otherwise, false.