public async Task <ActionResult <QueryResponse <QueryTicketModel> > > GetTicketsByCustomer(int customerId, int page, int pageSize)
        {
            var query = new GetCustomerTicketsQuery(customerId, page, pageSize)
            {
                CustomerId = customerId
            };
            var tickets = _ticketQueryHandler.HandleAsync(query);

            return(tickets);
        }
Пример #2
0
 public QueryResponse <QueryTicketModel> HandleAsync(GetCustomerTicketsQuery getCustomerTicketsQuery)
 {
     return(_unitOfWork.TicketRepository.GetTicketsAsync(getCustomerTicketsQuery.CustomerId, getCustomerTicketsQuery.Page, getCustomerTicketsQuery.PageSize));
 }