Esempio n. 1
0
        public ActionResult View(int id)
        {
            var advertModel = _advertRepository.Get(id);

            if (advertModel == null)
            {
                return(HttpNotFound());
            }

            return(View("~/Views/Advert/View.cshtml", advertModel));
        }
Esempio n. 2
0
        // GET: Advert/Details/5
        public ActionResult Details(int id)
        {
            Advert advert = advRepository.Get(id);

            return(View(advert));
        }