public async Task <IActionResult> PutAsync(Guid id, [FromBody] AlterarAlunoCommand command)
        {
            command.AlunoId = id;

            var result = await _mediator.EnviarComando(command);

            return(CustomResponse(result.ValidationResult));
        }
Beispiel #2
0
 public ICommandResult AlterarAluno(AlterarAlunoCommand command, [FromServices] AlterarAlunoCommandHandler handler)
 {
     return((GenericCommandResult)handler.Handle(command));
 }
 public GenericCommandResult UpdateStudent(AlterarAlunoCommand command, [FromServices] AlterarAlunoHandler handle)
 {
     return((GenericCommandResult)handle.Handler(command));
 }