public IActionResult Index()
 {
     return(View(haberServis.List(null)));
 }
示例#2
0
        public IActionResult HaberFiltrele(string kategoriAdi)
        {
            var listOfCategory = haberServis.List(c => c.Kategorisi.KategoriAdi == kategoriAdi);

            return(View(listOfCategory));
        }
 public IViewComponentResult Invoke(int id)
 {
     return(View("HaberlerimView", haberServis.List(c => c.EditorId == id)));
 }