예제 #1
0
 public Customer(Guid guid, string name, long contact, CurrencyType currency, string shortName, string email, string firstName, string lastName, string url, ICollection <CustomerSubscriptionDetails> subscription, CustomerLoginDetails loginDetails, Partner partner, CustomerAddress address, string role)
     : this()
 {
     CustomerId      = guid;
     CompanyName     = name;
     PrimaryContact  = contact;
     Currency        = currency;
     ShortName       = shortName;
     Email           = email;
     FirstName       = firstName;
     LastName        = lastName;
     WebsiteUrl      = url;
     Subscriptions   = subscription;
     LoginDetails    = loginDetails;
     Partner         = partner;
     CustomerAddress = address;
     Role            = role;
 }
예제 #2
0
 public static Customer Create(Guid guid, string name, long contact, CurrencyType currency, string shortName, string email, string firstName, string lastName, string url, ICollection <CustomerSubscriptionDetails> subscription, CustomerLoginDetails loginDetails, Partner partner, CustomerAddress address, string role)
 {
     return(new Customer(guid, name, contact, currency, shortName, email, firstName, lastName, url, subscription, loginDetails, partner, address, role));
 }