public static int AddReader(LTS.Reader reader) { int?ReaderID = -1; try { using (LTS.LTSBase access = new LTS.LTSDC()) { access.InsertReader(reader.IPaddress, reader.NumAntennas, reader.SettingsID, ref ReaderID); } } catch (Exception ex) { } return(ReaderID.Value); }