public List<TeacherChildrenBDO> ToChildrenBDO(List<TeacherChildren> tc) { List<TeacherChildrenBDO> tcbdoList = new List<TeacherChildrenBDO>(); foreach (TeacherChildren t in tc) { TeacherChildrenBDO tbdo = new TeacherChildrenBDO(); TranslateTeacherChildrenToTeacherChildrenBDO(t, tbdo); tcbdoList.Add(tbdo); } return tcbdoList; }
public void TranslateTeacherChildrenToTeacherChildrenBDO(TeacherChildren tc, TeacherChildrenBDO tcbdo) { tcbdo.ChildId = tc.ChildId; tcbdo.DOB = tc.DOB; tcbdo.FirstName = tc.FirstName; tcbdo.LastName = tc.LastName; tcbdo.MiddleName = tc.MiddleName; tcbdo.TeacherId = tc.TeacherId; }
private List<TeacherChildrenBDO> ToChildrenBDOList(ICollection<TeacherChildren> tcl) { List<TeacherChildrenBDO> tcList = new List<TeacherChildrenBDO>(); foreach (TeacherChildren tc in tcl) { TeacherChildrenBDO tchild = new TeacherChildrenBDO(); ConvertTeacherChildrenToTeacherChildrenBDO(tc, tchild); tcList.Add(tchild); } return tcList; }
private void ConvertTeacherChildrenToTeacherChildrenBDO(TeacherChildren tc, TeacherChildrenBDO t) { t.ChildId = tc.ChildId; t.DOB = (DateTime)tc.DOB; t.FirstName = tc.FirstName; t.LastName = tc.LastName; t.MiddleName = tc.MiddleName; t.TeacherId = tc.TeacherId; }
private void ConvertTeacherChildrenBDOToTeacherChildren(TeacherChildrenBDO tc, TeacherChildren t, string teacherId) { t.ChildId = tc.ChildId; t.DOB = tc.DOB; t.FirstName = tc.FirstName; t.LastName = tc.LastName; t.MiddleName = tc.MiddleName; t.TeacherId = teacherId; }