public IHttpActionResult Get()
        {
            PlantService plantService = CreatePlantService();
            var          plant        = plantService.GetAllPlants();

            return(Ok(plant));
        }
Exemple #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());
 }