Add search computer by year.

This commit is contained in:
2018-04-14 05:49:11 +01:00
parent 113cebe789
commit 8ddeeeaf4e
4 changed files with 76 additions and 2 deletions

View File

@@ -34,5 +34,12 @@ namespace cicm_web.Controllers
return View(computers);
}
public IActionResult ByYear(int id)
{
ViewBag.Year = id;
return View(ComputerMini.GetItemsFromYear(id));
}
}
}