public ActionResult <TicketDetailsDTO> GetAllMyTickets() { LoginToken <Customer> customer_token = DesirializeToken(); IList <Ticket> tickets = _loggedInCustomerFacade.GetAllMyTickets(customer_token); if (tickets.Count == 0) { return(NoContent()); } List <TicketDetailsDTO> ticketDetailsDTOs = new List <TicketDetailsDTO>(); foreach (var ticket in tickets) { ticketDetailsDTOs.Add(_mapper.Map <TicketDetailsDTO>(ticket)); } return(Ok(tickets)); }