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
phoneNumberstringThe phone number to check.
excludeUserIdGuid?Optional user ID to exclude from the check (useful when updating own profile).
cancellationTokenCancellationTokenCancellation token to cancel the operation.