public async Task <ActionResult <Pagination <TicketDto> > > GetAllTickets( [FromQuery] TicketSpecParams parameters) { var query = new GetAllTicketsQuery(parameters); var result = await _mediator.Send(query); return(Ok(result)); }
public GetAllTicketsQuery(TicketSpecParams parameters) { TicketParameters = parameters; }