public async Task <IActionResult> GetTickets() { var agentsWithMostClosedTickets = _repository.GetAgentsWithMostClosedTickets(); var productsWithMostTickets = _repository.GetProductsWithMostTickets(); var ticketsByMonths = _repository.GetTicketsByMonths(); var closedTicketsByMonths = _repository.GetClosedTicketsByMonths(); return(Ok(new { agentTickets = agentsWithMostClosedTickets, productTickets = productsWithMostTickets, ticketsByMonths = ticketsByMonths, closedTicketsByMonths = closedTicketsByMonths })); }