Files
schengen-visa/SchengenVisaApi/ApplicationLayer/Services/Locations/NeededServices/ICountriesRepository.cs
2024-08-20 21:34:56 +03:00

14 lines
464 B
C#

using ApplicationLayer.InfrastructureServicesInterfaces;
using Domains.LocationDomain;
namespace ApplicationLayer.Services.Locations.NeededServices;
public interface ICountriesRepository : IGenericRepository<Country>
{
/// Gets country by name
Task<Country?> FindByNameAsync(string countryName, CancellationToken cancellationToken);
/// Gets country by identifier
Task<Country?> FindByIdAsync(Guid id, CancellationToken cancellationToken);
}