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