Пример #1
0
 public ExtensionClub(ExtensionClub copyClub)
 {
     this.AccountId              = copyClub.AccountId;
     this.AccountName            = copyClub.AccountName;
     this.AccountDescription     = copyClub.AccountDescription;
     this.AccountLongDescription = copyClub.AccountLongDescription;
     this.AccountEmail           = copyClub.AccountEmail;
     this.AccountURI             = copyClub.AccountURI;
     this.AccountGroupId         = copyClub.AccountGroupId;
     this.GeoRegionId            = copyClub.GeoRegionId;
     this.URIFull                   = copyClub.URIFull;
     this.IsDefault                 = false;
     this.ClubDocFullPath           = copyClub.ClubDocFullPath;
     this.PrivateAuthorizationLevel = copyClub.PrivateAuthorizationLevel.ToString();
 }
Пример #2
0
        public static Account GetClub(ExtensionClub copyClub)
        {
            Account newClub = new Account();

            newClub.PKId            = copyClub.AccountId;
            newClub.AccountName     = copyClub.AccountName;
            newClub.AccountDesc     = copyClub.AccountDescription;
            newClub.AccountLongDesc = copyClub.AccountLongDescription;
            newClub.AccountEmail    = copyClub.AccountEmail;
            newClub.AccountURI      = copyClub.AccountURI;
            newClub.AccountClassId  = copyClub.AccountGroupId;
            newClub.GeoRegionId     = copyClub.GeoRegionId;
            newClub.URIFull         = copyClub.URIFull;
            //newClub.IsDefault = false;
            newClub.ClubDocFullPath = copyClub.ClubDocFullPath;
            newClub.PrivateAuthorizationLevel
                = AccountHelper.AUTHORIZATION_LEVELS.none;
            return(newClub);
        }
Пример #3
0
        public static AccountToMember GetMember(ExtensionMember memberCopy)
        {
            AccountToMember newMember = new AccountToMember();

            newMember.MemberRole             = Data.AppHelpers.Members.MEMBER_ROLE_TYPES.contributor.ToString();
            newMember.PKId                   = memberCopy.Id;
            newMember.MemberId               = memberCopy.MemberId;
            newMember.Member.MemberLastName  = memberCopy.LastName;
            newMember.Member.MemberFirstName = memberCopy.FirstName;
            newMember.Member.MemberDesc      = memberCopy.Description;
            newMember.Member.MemberEmail     = memberCopy.Email;
            newMember.Member.MemberClassId   = memberCopy.MemberGroupId;
            newMember.Member.GeoRegionId     = memberCopy.GeoRegionId;
            newMember.URIFull                = memberCopy.URIFull;
            newMember.MemberDocFullPath      = memberCopy.MemberDocFullPath;
            //newMember.ErrorMessage = memberCopy.ErrorMessage;
            newMember.ClubDefault = ExtensionClub.GetClub(memberCopy.ClubDefault);
            newMember.ClubInUse   = ExtensionClub.GetClub(memberCopy.ClubInUse);
            return(newMember);
        }