Ejemplo n.º 1
0
        public IHttpActionResult Get()
        {
            PlantService plantService = CreatePlantService();
            var          plant        = plantService.GetAllPlants();

            return(Ok(plant));
        }
Ejemplo n.º 2
0
        public List <PlantDTO> Get()
        {
            List <Plant> plants = service.GetAllPlants();

            return(mapper.Map <List <PlantDTO> >(plants));
        }
 public ActionResult <IEnumerable <PlantModel> > Get()
 {
     return(_service.GetAllPlants());
 }