From d32b6a10c039d31399c22f047b93ff760c07c5d9 Mon Sep 17 00:00:00 2001 From: MahanCh Date: Sun, 16 Mar 2025 14:25:12 +0330 Subject: [PATCH] fix date of issue bug in create employee --- CompanyManagment.Application/EmployeeAplication.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CompanyManagment.Application/EmployeeAplication.cs b/CompanyManagment.Application/EmployeeAplication.cs index 74c7e8e0..29db332f 100644 --- a/CompanyManagment.Application/EmployeeAplication.cs +++ b/CompanyManagment.Application/EmployeeAplication.cs @@ -1207,7 +1207,6 @@ public class EmployeeAplication : RepositoryBase, IEmployeeAppli byte[] bytes = Convert.FromBase64String(subBase64); System.IO.File.WriteAllBytes(filePath, bytes); } - public async Task> ValidateCreateEmployeeClientByNationalCodeAndWorkshopId(string nationalCode, string birthDate, long workshopId) { @@ -1280,8 +1279,6 @@ public class EmployeeAplication : RepositoryBase, IEmployeeAppli var identityInfo = personalInfoResponse.IdentificationInformation; var apiBirthDate = identityInfo.BirthDate.ToGeorgianDateTime(); - var dateOfIssue = new DateTime(1922, 1, 1); - var gender = basicInfo.GenderEnum switch { Gender.Female => "زن", @@ -1293,7 +1290,7 @@ public class EmployeeAplication : RepositoryBase, IEmployeeAppli employee.Edit(basicInfo.FirstName, basicInfo.LastName, basicInfo.FatherName, apiBirthDate, - dateOfIssue, employee.PlaceOfIssue, identityInfo.NationalId, idNumber, + employee.DateOfIssue, employee.PlaceOfIssue, identityInfo.NationalId, idNumber, gender, "ایرانی", employee.Phone, employee.Address, employee.State, employee.City, employee.MaritalStatus, employee.MilitaryService, employee.LevelOfEducation, employee.FieldOfStudy, employee.BankCardNumber, employee.BankBranch, employee.InsuranceCode, employee.InsuranceHistoryByYear,