// GET: Ticket/Details/5 public ActionResult Details(int id) { TicketDTO ticket = _client.GetTicket(id); var responses = _client.GetTicketResponses(id); ticket.Responses = responses; return(View(ticket)); }
public IHttpActionResult Get(int ticketNumber) { IEnumerable <TicketResponseDTO> responses = _client.GetTicketResponses(ticketNumber); if (responses == null || responses.Count() == 0) { return(StatusCode(HttpStatusCode.NoContent)); } return(Ok(responses)); }