public IActionResult Detail(int id) { TalepDetay td = new TalepDetay(); td.talep = _iTalepService.GetById(id); td.fotos = _iFotoService.GetByTalep(id); ViewBag.Id = id; return(View(td)); }
// GET: TeklifNobet/Talep/Details/5 public ActionResult Details(int id) { if (id < 1) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } TalepDetay Talep = _talepService.GetDetayById(id); if (Talep == null) { return(HttpNotFound()); } return(View(Talep)); }