示例#1
0
        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));
        }
示例#2
0
        // 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));
        }