Exemple #1
0
        public static void UpdateCustomer(EditableCustomer customer)
        {
            EditableCustomer editableCustomer = GetEditableCustomerByID(customer.CustomerID);

            if (editableCustomer == null)
            {
                return;
            }

            editableCustomer.CompanyName = customer.CompanyName;
            editableCustomer.ContactName = customer.ContactName;
            editableCustomer.City        = customer.City;
            editableCustomer.Country     = customer.Country;
            editableCustomer.Region      = customer.Region;
        }
Exemple #2
0
        public static void UpdateCustomer(EditableCustomer customer) {
            EditableCustomer editableCustomer = GetEditableCustomerByID(customer.CustomerID);
            if(editableCustomer == null)
                return;

            editableCustomer.CompanyName = customer.CompanyName;
            editableCustomer.ContactName = customer.ContactName;
            editableCustomer.City = customer.City;
            editableCustomer.Country = customer.Country;
            editableCustomer.Region = customer.Region;
        }