Пример #1
0
        public IActionResult PlantsByShadePreference(string id = "")
        {
            ViewData["Title"] = "Plants by Shade Preference";
            PlantRepository            r     = new PlantRepository();
            PlantsByAttributeViewModel model = r.GetPlantsByShadePreference(id);

            return(View(model));
        }
Пример #2
0
        public IActionResult PlantsByType()
        {
            ViewData["Title"] = "Plants by Plant Type";
            PlantRepository            r     = new PlantRepository();
            PlantsByAttributeViewModel model = r.GetPlantsByType();

            return(View(model));
        }
Пример #3
0
        public IActionResult PlantsByHabitat(string id = "")
        {
            ViewData["Title"] = "Plants by Habitat";
            PlantRepository            r     = new PlantRepository();
            PlantsByAttributeViewModel model = r.GetPlantsByHabitat(id);

            return(View(model));
        }