Created method for finding city by its name and country
This commit is contained in:
@@ -3,4 +3,12 @@ using Domains.LocationDomain;
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user