Exemplo n.º 1
0
 public static Customer toCustomer(IXLCustomer customer)
 {
     Customer.Builder builder = new Customer.Builder();
     builder.SetCustomerId(customer.CustomerId);
     builder.SetEmailAddress(customer.EmailAddress);
     builder.SetFirstName(customer.FirstName);
     builder.SetFullName(customer.FullName);
     builder.SetLastName(customer.LastName);
     return(builder.Build());
 }
Exemplo n.º 2
0
 public static LLCustomer toCustomer(IXLCustomer customer)
 {
     return(LLCustomer.CustomerWithBlock((LLCustomerBuilder builder) =>
     {
         builder.CustomerId = customer.CustomerId;
         builder.EmailAddress = customer.EmailAddress;
         builder.FirstName = customer.FirstName;
         builder.FullName = customer.FullName;
         builder.LastName = customer.LastName;
     }));
 }