Added validation and fixed errors
This commit is contained in:
		| @@ -0,0 +1,16 @@ | ||||
| using Domains.ApplicantDomain; | ||||
|  | ||||
| namespace ApplicationLayer.Services.Applicants.Models | ||||
| { | ||||
|     public class PlaceOfWorkModel | ||||
|     { | ||||
|         /// Name of hirer | ||||
|         public string Name { get; set; } = null!; | ||||
|  | ||||
|         /// Address of hirer | ||||
|         public Address Address { get; set; } = null!; | ||||
|  | ||||
|         /// Phone number of hirer | ||||
|         public string PhoneNum { get; set; } = null!; | ||||
|     } | ||||
| } | ||||
| @@ -11,4 +11,7 @@ public interface IApplicantsRepository : IGenericRepository<Applicant> | ||||
|  | ||||
|     /// Get identifier of applicant by user identifier | ||||
|     Task<Guid> GetApplicantIdByUserId(Guid userId, CancellationToken cancellationToken); | ||||
|  | ||||
|     /// Returns value of NonResident property of applicant | ||||
|     Task<bool> IsApplicantNonResidentByUserId(Guid userId, CancellationToken cancellationToken); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user