// GET: Seats/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Seat seat = repository.Find(id); if (seat == null) { return(HttpNotFound()); } return(View(seat)); }
// GET: Seats/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Seat seat = repository.Find(id); if (seat == null) { return(HttpNotFound()); } return(View(seat)); }