Exemple #1
0
 /// <summary>
 /// Converts from.
 /// </summary>
 /// <param name="previous_company_details">The previous company details.</param>
 /// <returns>previous_company_detailsModel.</returns>
 public static previous_company_detailsModel ConvertFrom(previous_company_details previous_company_details)
 {
     if (previous_company_details == null)
     {
         previous_company_details = new previous_company_details();
     }
     return(new previous_company_detailsModel()
     {
         pf_account_number = previous_company_details.pf_account_number,
         pf_employers_code_number = previous_company_details.pf_employers_code_number,
         fps_account_number = previous_company_details.fps_account_number,
         life_insurance = previous_company_details.life_insurance,
         mediclaim = previous_company_details.mediclaim,
         esi_insurance_number = previous_company_details.esi_insurance_number,
         esi_employers_code_number = previous_company_details.esi_employers_code_number
     });
 }
 public void EditPostforPreviousCompanyDetails(previous_company_detailsModel Previous_company_detailsModel, previous_company_details entity)
 {
     entity.pf_account_number         = Previous_company_detailsModel.pf_account_number;
     entity.fps_account_number        = Previous_company_detailsModel.fps_account_number;
     entity.pf_employers_code_number  = Previous_company_detailsModel.pf_employers_code_number;
     entity.life_insurance            = Previous_company_detailsModel.life_insurance;
     entity.esi_employers_code_number = Previous_company_detailsModel.esi_employers_code_number;
     entity.esi_insurance_number      = Previous_company_detailsModel.esi_insurance_number;
     entity.mediclaim = Previous_company_detailsModel.mediclaim;
 }