Example #1
0
        override public void UpdateCustomer()
        {
            if (!_isExistingCustomer)
            {
                throw new Exception("Update Customer may only be called for an existing customer");
            }

            // again, we do not expect any errors, so no try catch
            CustomerInformation customerInfo = CreateCustomerInformation();

            //_clientContextObj.DeleteContext("CONNTYPE", ref _contextArray);
            _clientContextObj.ConnectionUsage = ConnectionTypes.NonPersistent;
            _Handler.SetCustomerInfo(_name, customerInfo, ref _clientContextObj);
        }