public void Post([FromBody] SensorNode value) { var mainService = new MainService(); mainService.AddSensorNode(value.ToSensorNode()); }