Esempio 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;
 }
Esempio n. 2
0
 public async Task <IActionResult> GET_DOCUMENT_TYPE([FromQuery] GetDocumentTypeQuery query)
 {
     return(Ok(await _mediator.Send(query)));
 }