public ActionResult View(int id) { var advertModel = _advertRepository.Get(id); if (advertModel == null) { return(HttpNotFound()); } return(View("~/Views/Advert/View.cshtml", advertModel)); }
// GET: Advert/Details/5 public ActionResult Details(int id) { Advert advert = advRepository.Get(id); return(View(advert)); }