public ActionResult DetailTicketPricing(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Attraction attraction = dataGateway.SelectById(id); if (attraction == null) { return(HttpNotFound()); } IEnumerable <TicketPrice> result = ticketDataGateway.ticketById((int)id, ticketDataGateway.SelectAll()); // //TicketPrice ticketprice = ticketDataGateway.ticketById((int)id, ticketDataGateway.SelectAll()); return(View(result)); }