public void TranslateWorkExperienceToWorkExperienceBDO(WorkExperience tc, WorkExperienceBDO tcbdo) { tcbdo.CompanyName = tc.CompanyName; tcbdo.MonthlySalary = tc.MonthlySalary; tcbdo.Position= tc.Position; tcbdo.StatusOfEmployment = tc.StatusOfEmployment; tcbdo.TeacherId = tc.TeacherId; tcbdo.WEId = tc.WEId; tcbdo.WorkExpFrom = tc.WorkExpFrom; tcbdo.WorkExpTo = tc.WorkExpTo; }
public void ConvertWorkExperienceToWorkExperienceBDO(WorkExperience web, WorkExperienceBDO we) { we.CompanyName = web.CompanyName; we.MonthlySalary = web.MonthlySalary; we.Position = web.Position; we.StatusOfEmployment = web.StatusOfEmployment; we.TeacherId = web.TeacherId; we.WEId = web.WEId; we.WorkExpFrom = web.WorkExpFrom; we.WorkExpTo = web.WorkExpTo; }
public List<WorkExperienceBDO> ToWorkExpBDO(List<WorkExperience> teb) { List<WorkExperienceBDO> tebdoList = new List<WorkExperienceBDO>(); foreach (WorkExperience t in teb) { WorkExperienceBDO tebdo = new WorkExperienceBDO(); TranslateWorkExperienceToWorkExperienceBDO(t, tebdo); tebdoList.Add(tebdo); } return tebdoList; }
private List<WorkExperienceBDO> ToWorkExperienceBDOList(ICollection<WorkExperience> tcl) { List<WorkExperienceBDO> weList = new List<WorkExperienceBDO>(); foreach (WorkExperience web in tcl) { WorkExperienceBDO we = new WorkExperienceBDO(); ConvertWorkExperienceToWorkExperienceBDO(web, we); weList.Add(we); } return weList; }