public IViewComponentResult Invoke(int id)
 {
     return(View("YazilarimView", yaziServis.List(c => c.YazarId == id)));
 }
예제 #2
0
 public IActionResult YazilariListele()
 {
     return(View(yaziServis.List(null)));
 }
예제 #3
0
 public IViewComponentResult Invoke()
 {
     return(View("GuncelYazilarView", yaziServis.List(null).OrderByDescending(c => c.YaziTarihi).Take(3).ToList()));
 }