public ActionResult BlogPostsByTag(int id, int?page) { var model = _blogServices.AllBlogPostsByTag(id); return(View(model.ToPagedList(pageNumber: page ?? 1, pageSize: 5))); }