public async Task <IActionResult> Urunler(int?id)
        {
            List <UrunListDTO> liste = mapper.Map <List <UrunListDTO> >(await urunService.AllUrunWithKategori());

            ViewBag.Kategoriler = await kategoriService.All();

            ViewBag.KategoriId = id;
            return(View(liste));
        }
Example #2
0
        public async Task <IActionResult> Index()
        {
            var liste = mapper.Map <List <UrunListDTO> >(await urunService.AllUrunWithKategori());

            return(View(liste));
        }