public IActionResult PlantsByType() { ViewData["Title"] = "Plants by Plant Type"; PlantRepository r = new PlantRepository(); PlantsByAttributeViewModel model = r.GetPlantsByType(); return(View(model)); }