public CustomerInfo UpdateCustomer(CustomerInfo customerInfo) { LicenseCheck(customerInfo.LicenseKey); CustomerInfo addedCustomerInfo = new CustomerInfo(customerMethods.Update(customerInfo.Customer)); addedCustomerInfo.LicenseKey = customerInfo.LicenseKey; return(addedCustomerInfo); }
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)); }