Exemple #1
0
        public ActionResult BlogPostsByCategory(int id, int?page)
        {
            var model = _blogServices.GetBlogPostByCategoryID(id);

            return(View(model.ToPagedList(pageNumber: page ?? 1, pageSize: 5)));
        }