Exemplo n.º 1
0
        public ActionResult BlogPostsByTag(int id, int?page)
        {
            var model = _blogPostRepo.GetAllBlogPostsByTag(id);

            return(View(model.ToPagedList(pageNumber: page ?? 1, pageSize: 5)));
        }
Exemplo n.º 2
0
 public List <BlogPost> AllBlogPostsByTag(int tagID)
 {
     return(_blogPostRepo.GetAllBlogPostsByTag(tagID));
 }