Files
schengen-visa/ApplicationLayer/Services/Applicants/NeededServices/IApplicantsRepository.cs
2025-10-05 14:32:06 +03:00

18 lines
724 B
C#

using ApplicationLayer.InfrastructureServicesInterfaces;
using Domains.ApplicantDomain;
namespace ApplicationLayer.Services.Applicants.NeededServices;
/// Repository pattern for <see cref="Applicant"/>
public interface IApplicantsRepository : IGenericRepository<Applicant>
{
/// Find <see cref="Applicant"/> by Identifier
Task<Applicant> FindByUserIdAsync(Guid userId, CancellationToken cancellationToken);
/// Get identifier of applicant by user identifier
Task<Guid> GetApplicantIdByUserId(Guid userId, CancellationToken cancellationToken);
/// Returns value of NonResident property of applicant
Task<bool> IsApplicantNonResidentByUserId(Guid userId, CancellationToken cancellationToken);
}