Moved interfaces, created new folders for visa requests and handlers
This commit is contained in:
		| @@ -0,0 +1,14 @@ | ||||
| using ApplicationLayer.Applicants; | ||||
| using ApplicationLayer.VisaApplications.Requests; | ||||
|  | ||||
| namespace ApplicationLayer.VisaApplications.Handlers | ||||
| { | ||||
|     /// Handles visa requests | ||||
|     public class VisaApplicationRequestsHandler(IApplicantsRepository) | ||||
|     { | ||||
|         public void HandleCreateRequest(CreateVisaApplicationRequest request) | ||||
|         { | ||||
|  | ||||
|         } | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,6 @@ | ||||
| using ApplicationLayer.Common; | ||||
| using Domains.VisaApplicationDomain; | ||||
|  | ||||
| namespace ApplicationLayer.VisaApplications; | ||||
|  | ||||
| public interface IVisaApplicationsRepository : IGenericRepository<VisaApplication> { } | ||||
| @@ -0,0 +1,16 @@ | ||||
| namespace ApplicationLayer.VisaApplications.Models; | ||||
|  | ||||
| public class AddressModel | ||||
| { | ||||
|     /// Country part of address | ||||
|     public string Country { get; set; } = null!; | ||||
|  | ||||
|     /// City part of address | ||||
|     public string City { get; set; } = null!; | ||||
|  | ||||
|     /// Street part of address | ||||
|     public string Street { get; set; } = null!; | ||||
|  | ||||
|     /// Building part of address | ||||
|     public string Building { get; set; } = null!; | ||||
| } | ||||
| @@ -0,0 +1,13 @@ | ||||
| namespace ApplicationLayer.VisaApplications.Models; | ||||
|  | ||||
| public class PlaceOfWorkModel | ||||
| { | ||||
|     /// Name of hirer | ||||
|     public string Name { get; set; } = null!; | ||||
|  | ||||
|     /// <see cref="AddressModel"/> of hirer | ||||
|     public AddressModel Address { get; set; } = null!; | ||||
|  | ||||
|     /// Phone number of hirer | ||||
|     public string PhoneNum { get; set; } = null!; | ||||
| } | ||||
| @@ -0,0 +1,32 @@ | ||||
| using ApplicationLayer.VisaApplications.Models; | ||||
| using Domains.ApplicantDomain; | ||||
| using Domains.VisaApplicationDomain; | ||||
|  | ||||
| namespace ApplicationLayer.VisaApplications.Requests; | ||||
|  | ||||
| /// Model of visa request from user | ||||
| public record CreateVisaApplicationRequest( | ||||
|     Name FullName, | ||||
|     Passport Passport, | ||||
|     DateTime BirthDate, | ||||
|     string BirthCity, | ||||
|     string BirthCountry, | ||||
|     string CitizenShip, | ||||
|     string CitizenshipByBirth, | ||||
|     Gender Gender, | ||||
|     MaritalStatus MaritalStatus, | ||||
|     Name FatherName, | ||||
|     Name MotherName, | ||||
|     bool IsNonResident, | ||||
|     ReentryPermit ReentryPermit, | ||||
|     string JobTitle, | ||||
|     PlaceOfWorkModel PlaceOfWork, | ||||
|     string DestinationCountry, | ||||
|     VisaCategory VisaCategory, | ||||
|     bool IsForGroup, | ||||
|     RequestedNumberOfEntries RequestedNumberOfEntries, | ||||
|     int ValidDaysRequested, | ||||
|     PastVisa[] PastVisas, | ||||
|     PermissionToDestCountry? PermissionToDestCountry, | ||||
|     PastVisit[] PastVisits | ||||
| ); | ||||
		Reference in New Issue
	
	Block a user