Exemplo n.º 1
0
 public DocumentTypeController(
     CreateDocumentTypeCommandHandler createCommand,
     GetAllDocumentTypesQuery getAllQuery,
     GetDocumentTypeQuery getOneQuery,
     UpdateDocumentTypeCommandHandler updateCommand,
     DeleteDocumentTypeCommandHandler deleteCommand)
 {
     this.createCommand = createCommand;
     this.getAllQuery   = getAllQuery;
     this.getOneQuery   = getOneQuery;
     this.updateCommand = updateCommand;
     this.deleteCommand = deleteCommand;
 }
Exemplo n.º 2
0
 public async Task <IActionResult> GET_DOCUMENT_TYPE([FromQuery] GetDocumentTypeQuery query)
 {
     return(Ok(await _mediator.Send(query)));
 }