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