public ActionResult Preview(int id) { var newsPostViewModel = NewsPostHelper.GetNewsPostViewModelById(id, 1, User.IsInRole(Roles.Moderator.ToString())); return(View("Details", newsPostViewModel)); }
public ActionResult Details(int id, int?page) { var newsPostViewModel = NewsPostHelper.GetNewsPostViewModelById(id, page ?? 1, User.IsInRole(Roles.Moderator.ToString()), true); return(View(newsPostViewModel)); }