Refactored and fixed errors

This commit is contained in:
2024-08-15 23:42:18 +03:00
parent 72924fb037
commit 026a104131
21 changed files with 165 additions and 65 deletions

View File

@@ -1,14 +0,0 @@
using ApplicationLayer.Common;
using Domains.LocationDomain;
namespace ApplicationLayer.Locations;
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);
}

View File

@@ -0,0 +1,6 @@
using ApplicationLayer.GeneralNeededServices;
using Domains.LocationDomain;
namespace ApplicationLayer.Locations.NeededServices;
public interface ICitiesRepository : IGenericRepository<City> { }

View File

@@ -1,6 +1,6 @@
using ApplicationLayer.Common;
using ApplicationLayer.GeneralNeededServices;
using Domains.LocationDomain;
namespace ApplicationLayer.Locations;
namespace ApplicationLayer.Locations.NeededServices;
public interface ICountriesRepository : IGenericRepository<Country> { }