Exemple #1
0
 public SystemLookupItem(SystemLookupItemModel model)
 {
     Id                   = string.IsNullOrEmpty(model.Id) ? Guid.NewGuid().ToString() : model.Id;
     CanonicalName        = model.CanonicalName;
     DisplayName          = model.DisplayName;
     CloneToAdminDatabase = model.CloneToAdminDatabase;
     Values               = SystemLookupItemValue.Construct(model.Values);
     Enabled              = model.Enabled;
 }
Exemple #2
0
 //  Create entity from model.
 public SystemAddress(SystemAddressModel model)
 {
     Type       = new SystemLookupItemValue(model.Type);
     Line1      = model.Line1;
     Line2      = model.Line2;
     City       = model.City;
     State      = new SystemLookupItemValue(model.State);
     PostalCode = model.PostalCode;
     Country    = new SystemLookupItemValue(model.Country);
 }
 public SystemPhoneNumber(SystemPhoneNumberModel model)
 {
     Type   = new SystemLookupItemValue(model.Type);
     Number = model.Number;
 }
Exemple #4
0
 public SystemEmailAddress(SystemEmailAddressModel model)
 {
     Type    = new SystemLookupItemValue(model.Type);
     Address = model.Address;
 }
Exemple #5
0
 //  Create entity from model.
 public SystemWebsite(SystemWebsiteModel model)
 {
     Type = new SystemLookupItemValue(model.Type);
     Url  = model.Url;
 }