public JsonResult UpdateRecord([FromBody] Sensordata sensordata) { return(new JsonResult(_sensorDataService.Update(sensordata))); }