public async Task <IActionResult> Update([FromBody] CreateSubjectInput request, [FromRoute] int id) => await _dispatcher.DispatchAsync(new UpdateSubjectInput() { SubjectId = id, Name = request.Name, TeacherId = request.TeacherId, });
public async Task <IActionResult> Create([FromBody] CreateSubjectInput request) => await _dispatcher.DispatchAsync(request);