public List<DeviceDTO> GetAllDeviceID() { Transaction trans = new Transaction(); List<DeviceDTO> devices; DeviceRDG deviceRDG = new DeviceRDG(trans); trans.BeginTransaction(); try { devices = deviceRDG.GetAllDeviceID(); } catch (Exception e) { trans.Rollback(); throw e; } trans.Commit(); return devices; }
private DeviceRDG MakeDeviceObjct(string DeviceID) { DeviceRDG deviceRDG = new DeviceRDG(); deviceRDG.MakeDevice(DeviceID); return deviceRDG; }
public void MakePerson(string UserName,string Password,DeviceRDG Device) { this._userName = UserName; this._password = Password; this._isAdmin = false; this._device = Device; }