From 927a01cdbe9906a62303d993a3e5f09e3ceb266b Mon Sep 17 00:00:00 2001 From: prtsie Date: Thu, 15 Aug 2024 18:54:17 +0300 Subject: [PATCH] Created method for finding city by its name and country --- .../ApplicationLayer/Locations/ICitiesRepository.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/SchengenVisaApi/ApplicationLayer/Locations/ICitiesRepository.cs b/SchengenVisaApi/ApplicationLayer/Locations/ICitiesRepository.cs index 0631e5d..d0dd17c 100644 --- a/SchengenVisaApi/ApplicationLayer/Locations/ICitiesRepository.cs +++ b/SchengenVisaApi/ApplicationLayer/Locations/ICitiesRepository.cs @@ -3,4 +3,12 @@ using Domains.LocationDomain; namespace ApplicationLayer.Locations; -public interface ICitiesRepository : IGenericRepository { } +public interface ICitiesRepository : IGenericRepository +{ + /// Find the city by its name and its country name + /// City's name + /// City's country name + /// Cancellation token + /// City with specific name and country + Task GetByNameAsync(string name, string countryName, CancellationToken cancellationToken); +}