コード例 #1
0
        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));
        }
コード例 #2
0
        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);
        }