public List <TeacherEducationalBackground> ToEducBacDTO(List <TeacherEducationalBackgroundBDO> teb) { List <TeacherEducationalBackground> tebdoList = new List <TeacherEducationalBackground>(); foreach (TeacherEducationalBackgroundBDO t in teb) { TeacherEducationalBackground tebdo = new TeacherEducationalBackground(); TranslateTeacherEducationalBackgroundBDOToTeacheEducationalBackgroundDTO(t, tebdo); tebdoList.Add(tebdo); } return(tebdoList); }
public void TranslateTeacherEducationalBackgroundBDOToTeacheEducationalBackgroundDTO(TeacherEducationalBackgroundBDO tc, TeacherEducationalBackground tcbdo) { tcbdo.Course = tc.Course; tcbdo.Deactivated = tc.Deactivated; tcbdo.EducLevel = tc.EducLevel; tcbdo.HonorsReceived = tc.HonorsReceived; tcbdo.NameOfSchool = tc.NameOfSchool; tcbdo.TeacherId = tc.TeacherId; tcbdo.TEBId = tc.TEBId; tcbdo.TEBYearFrom = tc.TEBYearFrom; tcbdo.TEBYearTo = tc.TEBYearTo; }