Пример #1
0
        public void Insert(int ExchangeKey, string ExchangeName, string ExchangeShortname, bool?Onlyalt, string Address)
        {
            Exchange item = new Exchange();

            item.ExchangeKey = ExchangeKey;

            item.ExchangeName = ExchangeName;

            item.ExchangeShortname = ExchangeShortname;

            item.Onlyalt = Onlyalt;

            item.Address = Address;


            item.Save(UserName);
        }
Пример #2
0
        public void Update(int ExchangeKey, string ExchangeName, string ExchangeShortname, bool?Onlyalt, string Address)
        {
            Exchange item = new Exchange();

            item.MarkOld();
            item.IsLoaded = true;

            item.ExchangeKey = ExchangeKey;

            item.ExchangeName = ExchangeName;

            item.ExchangeShortname = ExchangeShortname;

            item.Onlyalt = Onlyalt;

            item.Address = Address;

            item.Save(UserName);
        }