Ejemplo n.º 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));
        }
Ejemplo n.º 2
0
        public IActionResult PlantsByType()
        {
            ViewData["Title"] = "Plants by Plant Type";
            PlantRepository            r     = new PlantRepository();
            PlantsByAttributeViewModel model = r.GetPlantsByType();

            return(View(model));
        }
Ejemplo n.º 3
0
        public IActionResult PlantsByHabitat(string id = "")
        {
            ViewData["Title"] = "Plants by Habitat";
            PlantRepository            r     = new PlantRepository();
            PlantsByAttributeViewModel model = r.GetPlantsByHabitat(id);

            return(View(model));
        }