Ejemplo n.º 1
0
 public void TranslateWorkExperienceBDOToWorkExperienceDTO(WorkExperienceBDO tc, WorkExperience tcbdo)
 {
     tcbdo.CompanyName = tc.CompanyName;
     tcbdo.MonthlySalary = (double)tc.MonthlySalary;
     tcbdo.Position = tc.Position;
     tcbdo.StatusOfEmployment = tc.StatusOfEmployment;
     tcbdo.TeacherId = tc.TeacherId;
     tcbdo.WEId = tc.WEId;
     tcbdo.WorkExpFrom = (DateTime)tc.WorkExpFrom;
     tcbdo.WorkExpTo = (DateTime)tc.WorkExpTo;
 }
Ejemplo n.º 2
0
 public List<WorkExperience> ToWorkExpDTO(List<WorkExperienceBDO> teb)
 {
     List<WorkExperience> tebdoList = new List<WorkExperience>();
     foreach (WorkExperienceBDO t in teb)
     {
         WorkExperience tebdo = new WorkExperience();
         TranslateWorkExperienceBDOToWorkExperienceDTO(t, tebdo);
         tebdoList.Add(tebdo);
     }
     return tebdoList;
 }