Exemplo n.º 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;
        }
Exemplo n.º 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;
        }