// GET: Offers/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } OfferDto offer = _offerService.FindOffer(id.Value); if (offer == null) { return(HttpNotFound()); } return(View(offer)); }