Changed domains, configured links between VisaApplication and Applicant,created generic repository and repositories for domains
This commit is contained in:
		
							
								
								
									
										21
									
								
								SchengenVisaApi/Domains/ApplicantDomain/Address.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								SchengenVisaApi/Domains/ApplicantDomain/Address.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| using Domains.LocationDomain; | ||||
|  | ||||
| namespace Domains.ApplicantDomain | ||||
| { | ||||
|     /// Model of address | ||||
|     /// <remarks>Owned</remarks> | ||||
|     public class Address | ||||
|     { | ||||
|         /// Country part of address | ||||
|         public Country Country { get; set; } = null!; | ||||
|  | ||||
|         /// City part of address | ||||
|         public City City { get; set; } = null!; | ||||
|  | ||||
|         /// Street part of address | ||||
|         public string Street { get; set; } = null!; | ||||
|  | ||||
|         /// Building part of address | ||||
|         public string Building { get; set; } = null!; | ||||
|     } | ||||
| } | ||||
| @@ -1,4 +1,5 @@ | ||||
| using Domains.Common; | ||||
| using Domains.LocationDomain; | ||||
| using Domains.VisaApplicationDomain; | ||||
|  | ||||
| namespace Domains.ApplicantDomain | ||||
| { | ||||
| @@ -49,5 +50,8 @@ namespace Domains.ApplicantDomain | ||||
|  | ||||
|         /// Is <see cref="Applicant"/> a non-resident | ||||
|         public bool IsNonResident { get; set; } | ||||
|  | ||||
|         /// List of <see cref="Applicant"/>'s applications | ||||
|         public List<VisaApplication> VisaApplications { get; set; } = null!; | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -1,6 +1,4 @@ | ||||
| using Domains.Common; | ||||
|  | ||||
| namespace Domains.ApplicantDomain | ||||
| namespace Domains.ApplicantDomain | ||||
| { | ||||
|     public class PlaceOfWork : IEntity | ||||
|     { | ||||
| @@ -10,7 +8,7 @@ namespace Domains.ApplicantDomain | ||||
|         /// Name of hirer | ||||
|         public string Name { get; set; } = null!; | ||||
|  | ||||
|         /// <see cref="Domains.Common.Address"/> of hirer | ||||
|         /// <see cref="ApplicantDomain.Address"/> of hirer | ||||
|         public Address Address { get; set; } = null!; | ||||
|  | ||||
|         /// Phone number of hirer | ||||
|   | ||||
		Reference in New Issue
	
	Block a user