Ejemplo n.º 1
0
        public IActionResult Guncelle(int id)
        {
            var gelenUrun = _urunRepository.GetirIdile(id);

            UrunGuncelleModel model = new UrunGuncelleModel
            {
                Urunid    = gelenUrun.UrunID,
                UrunAdi   = gelenUrun.UrunAd,
                UrunFiyat = gelenUrun.Fiyat
            };

            return(View(model));
        }
Ejemplo n.º 2
0
        public IActionResult Guncelle(int id)
        {
            var gelenUrun = _urunRepository.GetirIdile(id);

            UrunGuncelleModel model = new UrunGuncelleModel
            {
                Ad    = gelenUrun.Ad,
                Fiyat = gelenUrun.Fiyat,

                Id = gelenUrun.Id
            };

            return(View(model));
        }
Ejemplo n.º 3
0
 public IActionResult UrunDetay(int id)
 {
     return(View(_urunRepository.GetirIdile(id)));
 }
Ejemplo n.º 4
0
 public IActionResult UrunDetay(int id)
 {
     //ViewBag.Cookie=GetCookies("kişi");
     //ViewBag.Session = GetSession("kisi");
     return(View(_urunRepository.GetirIdile(id)));
 }