Moved repository interfaces to application layer, created blank visa requests handler
This commit is contained in:
		| @@ -1,7 +1,6 @@ | ||||
| using Domains.ApplicantDomain; | ||||
| using Infrastructure.Database.Generic; | ||||
| 
 | ||||
| namespace Infrastructure.Database.Applicants.Repositories; | ||||
| namespace ApplicationLayer.Common; | ||||
| 
 | ||||
| /// Repository pattern for <see cref="Applicant"/> | ||||
| public interface IApplicantsRepository : IGenericRepository<Applicant> { } | ||||
| @@ -1,6 +1,6 @@ | ||||
| using Domains; | ||||
| 
 | ||||
| namespace Infrastructure.Database.Generic; | ||||
| namespace ApplicationLayer.Common; | ||||
| 
 | ||||
| /// <summary> | ||||
| /// Generic repository pattern | ||||
| @@ -33,4 +33,4 @@ public interface IGenericRepository<T> where T : class, IEntity | ||||
| 
 | ||||
|     /// Save changes in storage | ||||
|     Task SaveAsync(CancellationToken cancellationToken); | ||||
| } | ||||
| } | ||||
| @@ -0,0 +1,11 @@ | ||||
| namespace ApplicationLayer.VisaApplication.Services | ||||
| { | ||||
|     /// Handles visa requests | ||||
|     public class VisaApplicationRequestsHandler() | ||||
|     { | ||||
|         public void HandleCreateRequest(CreateVisaApplicationRequest request) | ||||
|         { | ||||
|  | ||||
|         } | ||||
|     } | ||||
| } | ||||
| @@ -1,4 +1,5 @@ | ||||
| using Domains.ApplicantDomain; | ||||
| using ApplicationLayer.Common; | ||||
| using Domains.ApplicantDomain; | ||||
| using Infrastructure.Database.Generic; | ||||
| using Microsoft.EntityFrameworkCore; | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,5 @@ | ||||
| using Domains; | ||||
| using ApplicationLayer.Common; | ||||
| using Domains; | ||||
| using Infrastructure.Database.GeneralExceptions; | ||||
| using Microsoft.EntityFrameworkCore; | ||||
|  | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| using Domains.LocationDomain; | ||||
| using Infrastructure.Database.Generic; | ||||
| using ApplicationLayer.Common; | ||||
| using Domains.LocationDomain; | ||||
|  | ||||
| namespace Infrastructure.Database.Locations.Repositories.Cities; | ||||
|  | ||||
| public interface ICitiesRepository : IGenericRepository<City> { } | ||||
| public interface ICitiesRepository : IGenericRepository<City> { } | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| using Domains.LocationDomain; | ||||
| using Infrastructure.Database.Generic; | ||||
| using ApplicationLayer.Common; | ||||
| using Domains.LocationDomain; | ||||
|  | ||||
| namespace Infrastructure.Database.Locations.Repositories.Countries; | ||||
|  | ||||
| public interface ICountriesRepository : IGenericRepository<Country> { } | ||||
| public interface ICountriesRepository : IGenericRepository<Country> { } | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| using Domains.VisaApplicationDomain; | ||||
| using Infrastructure.Database.Generic; | ||||
| using ApplicationLayer.Common; | ||||
| using Domains.VisaApplicationDomain; | ||||
|  | ||||
| namespace Infrastructure.Database.VisaApplications.Repositories; | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,5 @@ | ||||
| using Infrastructure.Database; | ||||
| using ApplicationLayer.Common; | ||||
| using Infrastructure.Database; | ||||
| using Infrastructure.Database.Applicants.Repositories; | ||||
| using Infrastructure.Database.Generic; | ||||
| using Infrastructure.Database.Locations.Repositories.Cities; | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| using ApplicationLayer.VisaApplication; | ||||
| using Microsoft.AspNetCore.Mvc; | ||||
|  | ||||
| namespace SchengenVisaApi.Controllers; | ||||
| @@ -10,11 +11,11 @@ public class VisaApplicationController : ControllerBase | ||||
|     public VisaApplicationController() | ||||
|     { | ||||
|  | ||||
|     } | ||||
|         } | ||||
|  | ||||
|     [HttpGet] | ||||
|     public void Create() | ||||
|     [HttpPost] | ||||
|     public void Create(CreateVisaApplicationRequest request) | ||||
|     { | ||||
|         throw new NotImplementedException(); | ||||
|     } | ||||
|             throw new NotImplementedException(); | ||||
|         } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user