public static DTOPath DTOPath(StudentInBu s) { using (ModelEntities db = new ModelEntities()) { return(new DTOPath() { }); } }
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 }); }
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, }); } }