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