public ActionResult <List <Plant> > GetAllPlants() { List <Plant> plants = new List <Plant>(); plants = PlantRepository.GetAllPlants(); return(plants); }
public List <Plant> GetListPlants() { List <Plant> plants = plantRepository.GetAllPlants(); return(new List <Plant>(plants)); }