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