Beispiel #1
0
 public static DTOPath DTOPath(StudentInBu s)
 {
     using (ModelEntities db = new ModelEntities())
     {
         return(new DTOPath()
         {
         });
     }
 }
Beispiel #2
0
 public static DTOArrivingChild DTOArrivingChild(StudentInBu s)
 {
     return(new DTOArrivingChild()
     {
         StudentId = s.Student.StudentId,
         Name = s.Student.firstName + " " + s.Student.lastName,
         EmergencyPhone1 = s.Student.emergencyPhone1,
         EmergencyPhone2 = s.Student.emergencyPhone2,
         DidCome = false,
         eMail = s.Student.mail
     });
 }
Beispiel #3
0
 public static DTOStudentInBus DTOStudentInBus(StudentInBu s)
 {
     using (ModelEntities db = new ModelEntities())
     {
         return(new DTOStudentInBus()
         {
             StudentInBusId = s.StudentInBusId,
             busId = s.busId,
             didCome = s.didCome,
             index = s.index,
             studentId = s.studentId,
         });
     }
 }