Ejemplo n.º 1
0
        public ActionResult TumKategoriUrunler(int hdnYakalananCatId)
        {
            KategoriUrunVM VM = new KategoriUrunVM();

            VM.KategoriList = DB.Categories.ToList();
            VM.UrunList     = DB.Products.Where(x => x.CategoryID == hdnYakalananCatId).ToList();

            return(View(VM));
        }
Ejemplo n.º 2
0
        public ActionResult TumKategoriUrunler()
        {
            KategoriUrunVM VM = new KategoriUrunVM();

            VM.KategoriList = DB.Categories.ToList();
            VM.UrunList     = DB.Products.ToList();

            return(View(VM));
        }