Update DB to version 21: Have full introduction date for machines, not only year.

This commit is contained in:
2018-04-28 21:29:01 +01:00
parent fd0b55dee1
commit 349a941392
13 changed files with 256 additions and 57 deletions

View File

@@ -52,8 +52,8 @@ namespace cicm_web.Controllers
ViewBag.ItemCount = consoles.Count;
ViewBag.MinYear = consoles.Where(t => t.Year > 1000).Min(t => t.Year);
ViewBag.MaxYear = consoles.Where(t => t.Year > 1000).Max(t => t.Year);
ViewBag.MinYear = consoles.Where(t => t.Introduced.Year > 1000).Min(t => t.Introduced.Year);
ViewBag.MaxYear = consoles.Where(t => t.Introduced.Year > 1000).Max(t => t.Introduced.Year);
return View();
}