コード例 #1
0
ファイル: OffersController.cs プロジェクト: mDinon/DigiOffers
        // 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));
        }