Exemplo n.º 1
0
        public static List<User> GetUsers(Group group)
        {
            User u1 = new User();
            u1.Group = group;
            u1.Username = "******";
            u1.Desk = 1;
            u1.Email = "*****@*****.**";
            u1.IsActive = true;

            User u2 = new User();
            u2.Group = group;
            u2.Username = "******";
            u2.Desk = 2;
            u2.Email = "*****@*****.**";
            u2.IsActive = false;

            User u3 = new User();
            u3.Group = group;
            u3.Username = "******";
            u3.Desk = 3;
            u3.Email = "*****@*****.**";
            u3.IsActive = true;

            User u4 = new User();
            u4.Group = group;
            u4.Username = "******";
            u4.Desk = 4;
            u4.Email = "*****@*****.**";
            u4.IsActive = false;

            List<User> users = new List<User>();
            if (group.Id == 1)
            {
                users.Add(u1);
                users.Add(u2);
            }
            else
            {
                users.Add(u3);
                users.Add(u4);
            }

            return users;
        }
Exemplo n.º 2
0
 public void DataBindUser(User user)
 {
     Console.Out.WriteLine("DataBindUser:" + user);
 }