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,