Пример #1
0
 public void UpdateValues(LicenseUser user)
 {
     DisplayName    = user.DisplayName;
     Email          = user.Email;
     Enabled        = user.Enabled;
     FirstName      = user.FirstName;
     IsDeleted      = false; // cannot be deleted if its in ad!
     LastLoginDate  = user.LastLoginDate;
     SamAccountName = user.SamAccountName;
     Surname        = user.Surname;
     WhenCreated    = WhenCreated;
 }
Пример #2
0
 public static LicenseUser Create(LicenseUser user, int managedSupportId, long tenantId)
 {
     return(new LicenseUser
     {
         DisplayName = user.DisplayName,
         Email = user.Email,
         Enabled = user.Enabled,
         FirstName = user.FirstName,
         Id = user.Id,
         IsDeleted = false,
         LastLoginDate = user.LastLoginDate,
         ManagedSupportId = managedSupportId,
         SamAccountName = user.SamAccountName,
         Surname = user.Surname,
         TenantId = Convert.ToInt32(tenantId),
         WhenCreated = user.WhenCreated
     });
 }