public IHttpActionResult Get() { PlantService plantService = CreatePlantService(); var plant = plantService.GetAllPlants(); return(Ok(plant)); }
public List <PlantDTO> Get() { List <Plant> plants = service.GetAllPlants(); return(mapper.Map <List <PlantDTO> >(plants)); }
public ActionResult <IEnumerable <PlantModel> > Get() { return(_service.GetAllPlants()); }