fix: import errors van gabe gefixt, teacher en student abstractie weggedaan
This commit is contained in:
parent
6404335040
commit
b5390258e3
36 changed files with 9754 additions and 180 deletions
|
@ -23,10 +23,11 @@ export function mapToStudentDTO(student: Student): StudentDTO {
|
|||
}
|
||||
|
||||
export function mapToStudent(studentData: StudentDTO): Student {
|
||||
const student = new Student();
|
||||
student.username = studentData.username;
|
||||
student.firstName = studentData.firstName;
|
||||
student.lastName = studentData.lastName;
|
||||
const student = new Student(
|
||||
studentData.username,
|
||||
studentData.firstName,
|
||||
studentData.lastName,
|
||||
);
|
||||
|
||||
return student;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue