Exemple #1
0
 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;
 }
Exemple #2
0
 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;
 }
Exemple #3
0
 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;
 }
Exemple #4
0
 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;
 }
Exemple #5
0
 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;
 }