Created method for finding city by its name and country

This commit is contained in:
2024-08-15 18:54:17 +03:00
parent 4c3380ee8d
commit 927a01cdbe

View File

@@ -3,4 +3,12 @@ using Domains.LocationDomain;
namespace ApplicationLayer.Locations; namespace ApplicationLayer.Locations;
public interface ICitiesRepository : IGenericRepository<City> { } public interface ICitiesRepository : IGenericRepository<City>
{
/// Find the city by its name and its country name
/// <param name="name">City's name</param>
/// <param name="countryName">City's country name</param>
/// <param name="cancellationToken">Cancellation token</param>
/// <returns>City with specific name and country</returns>
Task<City> GetByNameAsync(string name, string countryName, CancellationToken cancellationToken);
}