public ActionResult Index() { IndexViewModel model = new IndexViewModel(); model.Pages = this.pageService.GetPages(1, 10, new ItemQueryFilter { MaxPublishAt = DateTimeOffset.Now.AddYears(1).AsMinutes(), MinPublishAt = DateTimeOffset.Now.AddYears(-10).AsMinutes(), Status = null }); return(this.View(model)); }
public ActionResult Index() { IndexViewModel model = new IndexViewModel(); model.Pages = this.pageService.GetPages(1, 10, new ItemQueryFilter { MaxPublishAt = DateTimeOffset.Now.AddYears(1).AsMinutes(), MinPublishAt = DateTimeOffset.Now.AddYears(-10).AsMinutes(), Status = null }); return this.View(model); }