Пример #1
0
 public async Task <IActionResult> Update([FromBody] CreateSubjectInput request, [FromRoute] int id) =>
 await _dispatcher.DispatchAsync(new UpdateSubjectInput()
 {
     SubjectId = id,
     Name      = request.Name,
     TeacherId = request.TeacherId,
 });
Пример #2
0
 public async Task <IActionResult> Create([FromBody] CreateSubjectInput request) => await _dispatcher.DispatchAsync(request);