public IActionResult AllBlog() { var blogs = blog.GetAll(); IndexModel model = new IndexModel() { bloglar = blogs }; return(View(model)); }
// localhost:5000/home/about public IActionResult Bloglar() { var blog = bloglar.GetAll(); IndexModel model = new IndexModel() { bloglar = blog }; return(View(model)); }
public ActionResult Index() { List <BlogEntry> model = repo.GetAll(); return(View(model)); }