public IActionResult AddStudentToWaitingListByCourseId(int id, [FromBody] StudentViewModel student) { studentService.AddStudentToWaitingListByCourseId(id, ModelState.IsValid, new StudentDto { Ssn = student.Ssn }); return(StatusCode(201)); }