public IHttpActionResult GetType(int plantTypeID) { PlantService plantService = CreatePlantService(); var plant = plantService.GetPlantByType(plantTypeID); return(Ok(plant)); }