public IActionResult Create()
 {
     ViewBag.Authors  = new SelectList(_authorRepo.GetAll(), "Id", "Fullname");
     ViewBag.BlogDesc = new SelectList(_blogDescrepo.GetAll(), "Id", "Image");
     return(View());
 }
Exemple #2
0
 public IViewComponentResult Invoke()
 {
     return(View(repo.GetAll().Take(2).ToList()));
 }