From 6a982a80f7f388c6bb429374df7d440c90768cf7 Mon Sep 17 00:00:00 2001 From: MahanCh Date: Sat, 13 Sep 2025 12:52:44 +0330 Subject: [PATCH] Refactor date of birth handling in EmployerApplication --- .../Employer/IEmployerApplication.cs | 8 ++------ CompanyManagment.Application/EmployerApplication.cs | 3 +-- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/CompanyManagment.App.Contracts/Employer/IEmployerApplication.cs b/CompanyManagment.App.Contracts/Employer/IEmployerApplication.cs index df65c7d3..3f8e915e 100644 --- a/CompanyManagment.App.Contracts/Employer/IEmployerApplication.cs +++ b/CompanyManagment.App.Contracts/Employer/IEmployerApplication.cs @@ -172,13 +172,9 @@ public class AuthenticateUserViewModel /// کد ملی /// public string NationalCode { get; set; } + - /// - ///تاریخ تولد - /// - public DateTime DateOfBirth { get; set; } - - public string DateOfBirthFa { get; set; } + public string DateOfBirth { get; set; } /// /// سری شناسنامه diff --git a/CompanyManagment.Application/EmployerApplication.cs b/CompanyManagment.Application/EmployerApplication.cs index 16aba980..b5d941dc 100644 --- a/CompanyManagment.Application/EmployerApplication.cs +++ b/CompanyManagment.Application/EmployerApplication.cs @@ -1421,7 +1421,7 @@ public class EmployerApplication : IEmployerApplication var res = new AuthenticateUserViewModel() { - DateOfBirth = dateOfBirthGr, + DateOfBirth = dateOfBirth, FatherName = apiRespons.BasicInformation.FatherName, FName = apiRespons.BasicInformation.FirstName, Gender = apiRespons.BasicInformation.GenderEnum, @@ -1431,7 +1431,6 @@ public class EmployerApplication : IEmployerApplication LName = apiRespons.BasicInformation.LastName, NationalCode = nationalCode, Phone = mobile, - DateOfBirthFa = dateOfBirth }; return op.Succcedded(res); }