public void EditPostforEpfoDetails(epfo_detailsModel Epfo_detailsModel, epfo_details entity) { entity.presentcompany_pfnumber = Epfo_detailsModel.presentcompany_pfnumber; entity.member_of_epfoscheme = Epfo_detailsModel.member_of_epfoscheme; entity.member_of_epsscheme = Epfo_detailsModel.member_of_epsscheme; entity.universal_account_number = Epfo_detailsModel.universal_account_number; entity.prev_pf_acc_number = Epfo_detailsModel.prev_pf_acc_number; entity.scheme_certificate_number = Epfo_detailsModel.scheme_certificate_number; entity.ppo_number = Epfo_detailsModel.ppo_number; entity.international_worker = Epfo_detailsModel.international_worker; entity.country_of_origin = Epfo_detailsModel.country_of_origin; }
/// <summary> /// Converts from. /// </summary> /// <param name="epfo_details">The epfo details.</param> /// <returns>epfo_detailsModel.</returns> public static epfo_detailsModel ConvertFrom(epfo_details epfo_details) { if (epfo_details == null) { epfo_details = new epfo_details(); } return(new epfo_detailsModel() { universal_account_number = epfo_details.universal_account_number, scheme_certificate_number = epfo_details.scheme_certificate_number, presentcompany_pfnumber = epfo_details.presentcompany_pfnumber, prev_pf_acc_number = epfo_details.prev_pf_acc_number, ppo_number = epfo_details.ppo_number, member_of_epfoscheme = epfo_details.member_of_epfoscheme, member_of_epsscheme = epfo_details.member_of_epsscheme, international_worker = epfo_details.international_worker, country_of_origin = epfo_details.country_of_origin }); }