public IActionResult PlantsBySoilPreference(string id = "") { ViewData["Title"] = "Plants by Soil Preference"; PlantRepository r = new PlantRepository(); PlantsByAttributeViewModel model = r.GetPlantsBySoilPreference(id); return(View(model)); }