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