public void OnGet(int?makeId, string?makeName)
 {
     MakeId   = makeId;
     MakeName = makeName;
     Cars     = makeId.HasValue
         ? _repo.GetAllBy(makeId.Value)
         : _repo.GetAllIgnoreQueryFilters();
 }
Example #2
0
 public IActionResult ByMake(int makeId, string makeName)
 {
     ViewBag.MakeName = makeName;
     return(View(_repo.GetAllBy(makeId)));
 }