Пример #1
0
        public async Task <ActionResult <Pagination <TicketDto> > > GetAllTickets(
            [FromQuery] TicketSpecParams parameters)
        {
            var query  = new GetAllTicketsQuery(parameters);
            var result = await _mediator.Send(query);

            return(Ok(result));
        }
Пример #2
0
 public GetAllTicketsQuery(TicketSpecParams parameters)
 {
     TicketParameters = parameters;
 }