Esempio n. 1
0
        public CustomerInfo UpdateCustomer(CustomerInfo customerInfo)
        {
            LicenseCheck(customerInfo.LicenseKey);

            CustomerInfo addedCustomerInfo = new CustomerInfo(customerMethods.Update(customerInfo.Customer));

            addedCustomerInfo.LicenseKey = customerInfo.LicenseKey;

            return(addedCustomerInfo);
        }
Esempio n. 2
0
        public void UpdateCustomer(Customer customer)
        {
            var customerService = new CustomerMethods();

            var newCustomer = new Domain.Customer
            {
                Id        = customer.Id,
                Firstname = customer.Firstname,
                Lastname  = customer.Lastname,
                Telephone = customer.Telephone,
                Email     = customer.Email
            };

            customerService.Update(newCustomer);
        }
 public Customer EditCustomer(Customer customer)
 {
     return(customerMethods.Update(customer));
 }