Ejemplo n.º 1
0
 public BoxUser(User user, BoxRole role = BoxRole.BoxUser)
 {
     Username = user.Username.ToLowerInvariant();
     SetRole(role);
     CreatedAt = DateTime.UtcNow;
     UpdatedAt = DateTime.UtcNow;
 }
Ejemplo n.º 2
0
        public void SetRole(BoxRole role)
        {
            if (Role == role)
            {
                return;
            }

            Role      = role;
            UpdatedAt = DateTime.UtcNow;
        }