Пример #1
0
        public RoleMerger Add(IList roles)
        {
            foreach (IRole obj in roles)
            {
                RoleProxy rr = new RoleProxy();
                rr.Id   = iCount;
                rr.Name = obj.Role.Name;
                rr.Role = obj.Role;

                results.Add(rr);
                iCount++;
            }

            return(this);
        }
Пример #2
0
        public RoleMerger Add( IList roles )
        {
            foreach (IRole obj in roles) {

                RoleProxy rr = new RoleProxy();
                rr.Id = iCount;
                rr.Name = obj.Role.Name;
                rr.Role = obj.Role;

                results.Add( rr );
                iCount++;
            }

            return this;
        }
Пример #3
0
 private int addRoleTo( List<IRole> results, IList roles, int i )
 {
     foreach (IRole role in roles) {
         RoleProxy rr = new RoleProxy();
         rr.Id = i;
         rr.Name = role.Name;
         rr.Role = role;
         results.Add( rr );
         i++;
     }
     return i;
 }