public IHttpActionResult GetPlantZone(GetPlantByZoneIDModel model) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } PlantService plantService = CreatePlantService(); var plants = plantService.GetPlantByPlantZone(model.ZoneID); return(Ok(plants)); }