예제 #1
0
        public ActionResult Index(string name)
        {
            var page = Data.Biggy.PageList.Single(x => x.Name == name);

            var historyViewModel = new HistoryViewModel
            {
                Page = new PageViewModel
                    {
                        Name = page.Name,
                        LastComparisonDate = page.LastComparisonDate,
                        ComparisonStillValid = page.ComparisonStillValid,
                        HumanComparisonRequired = page.HumanComparisonRequired
                    },
                DifferenceImages = _imageStore.Get(name, Environment.DifferenceId).Select(x => new HistoricalImage(x))
            };

            return View(historyViewModel);
        }
예제 #2
0
        public ActionResult Index(string name)
        {
            var page = Data.Biggy.PageList.Single(x => x.Name == name);

            var historyViewModel = new HistoryViewModel
            {
                Page = new PageViewModel
                {
                    Name = page.Name,
                    LastComparisonDate      = page.LastComparisonDate,
                    ComparisonStillValid    = page.ComparisonStillValid,
                    HumanComparisonRequired = page.HumanComparisonRequired
                },
                DifferenceImages = _imageStore.Get(name, Environment.DifferenceId).Select(x => new HistoricalImage(x))
            };

            return(View(historyViewModel));
        }