public ListByTag ( string tagName, int page ) : System.Web.Mvc.ActionResult | ||
tagName | string | |
page | int | |
return | System.Web.Mvc.ActionResult |
public ActionResult ListByTag(string tagName, int page)
{
var tag = tagName;
var posts = postService.GetPostsByTagPaged(CurrentBlog, tagName, 0, CurrentBlog.Configuration.PageSize);
return View("PostByTagList", new {tag = tag, posts = posts});
}