Exemplo n.º 1
0
        public ActionResult List()
        {
            BlogsDAO blogsDAO   = new BlogsDAO();
            Blogs    blogsModel = new Blogs();

            blogsModel.ShowAllBlogs = blogsDAO.ListData();
            return(View(blogsModel));
        }
Exemplo n.º 2
0
 public ActionResult Search()
 {
     blogs.ShowAllBlogs = dao.ListData();
     return(View(blogs));
 }