public static int AddStore(LTS.Store store) { int?StoreID = -1; try { using (LTS.LTSBase access = new LTS.LTSDC()) { access.InsertStore(store.StoreLocation, store.StoreName, ref StoreID); } } catch (Exception ex) { } return(StoreID.Value); }