public static string GetTicketsByContactID(RestCommand command, int contactID, bool orderByDateCreated = false) { TicketsView tickets = new TicketsView(command.LoginUser); if (orderByDateCreated) { tickets.LoadByContactID(contactID, "ut.DateCreated DESC"); } else { tickets.LoadByContactID(contactID); } return(tickets.GetXml("Tickets", "Ticket", command.Filters["TicketTypeID"] != null, command.Filters)); }