public ActionResult UpdatePlant([FromBody] RESTPlantModel plantModel) { var result = plantRepository.UpdatePlant(plantModel); if (result.Successful) { return(this.Ok(result)); } return(this.BadRequest(result)); }