Example #1
0
 public UserModel(UserDAO user)
 {
     this.user = user;
     Role      = userRole.SelectAll();
     Users     = user.SelectAllWithoutRoleName();
     Users.ForEach(x => x.Role.RoleName = Role.Single <UserRole>(y => y.ID == x.Role.ID).RoleName);
 }