public ActionResult <List <Plant> > GetAllPlants()
        {
            List <Plant> plants = new List <Plant>();

            plants = PlantRepository.GetAllPlants();
            return(plants);
        }
Exemple #2
0
        public List <Plant> GetListPlants()
        {
            List <Plant> plants = plantRepository.GetAllPlants();

            return(new List <Plant>(plants));
        }