public IActionResult Index(string brandName) { var shoeList = BrandServices.GetShoesByBrandName(brandName); var allBrandsVm = BrandServices.GetAllBrands(); dynamic mymodel = new ExpandoObject(); mymodel.Shoes = shoeList.Shoes; mymodel.Brand = allBrandsVm; return(View(mymodel)); }