public void deleteIoTDeviceConfiguration(int id) { DBHelper._IoTDeviceCustomizedConfiguration dbhelp = new DBHelper._IoTDeviceCustomizedConfiguration(); IoTDeviceCustomizedConfiguration existingIoTDCC = dbhelp.GetByid(id); dbhelp.Delete(existingIoTDCC); }
public void updateCustomizedConfiguration(int id, Update iotDCC) { DBHelper._IoTDeviceCustomizedConfiguration dbhelp = new DBHelper._IoTDeviceCustomizedConfiguration(); IoTDeviceCustomizedConfiguration existingIoTDCC = dbhelp.GetByid(id); existingIoTDCC.Name = iotDCC.Name; existingIoTDCC.DataType = iotDCC.DataType; existingIoTDCC.Description = iotDCC.Description; existingIoTDCC.DefaultValue = iotDCC.DefaultValue; dbhelp.Update(existingIoTDCC); }
public Detail getCustomizedConfigurationById(int id) { DBHelper._IoTDeviceCustomizedConfiguration dbhelp = new DBHelper._IoTDeviceCustomizedConfiguration(); IoTDeviceCustomizedConfiguration iotDCC = dbhelp.GetByid(id); return(new Detail() { Id = iotDCC.Id, Name = iotDCC.Name, DataType = iotDCC.DataType, Description = iotDCC.Description, DefaultValue = iotDCC.DefaultValue }); }