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; }
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; }