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); }