public async Task <IActionResult> AddStudent(
            [FromServices] IAddStudentUseCase addStudentUseCase,
            [FromServices] AddStudentPresenter addStudentPresenter,
            [FromBody] ChangeStudentRequest input)
        {
            await addStudentUseCase.Execute(new AddStudentInput(input.GroupId, input.StudentId));

            return(addStudentPresenter.ViewModel);
        }
Beispiel #2
0
 public StudentV1Controller(IAddStudentUseCase addStudentUseCase)
 {
     _addStudentUseCase = addStudentUseCase;
 }