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); }
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)); }