diff --git a/Project-Unite/Models/Group.cs b/Project-Unite/Models/Group.cs index f59270b..da5b277 100644 --- a/Project-Unite/Models/Group.cs +++ b/Project-Unite/Models/Group.cs @@ -16,6 +16,15 @@ public class Group public double RawReputation { get; set; } + public ApplicationUser[] Users + { + get + { + var db = new ApplicationDbContext(); + return db.Users.Where(x => x.GroupId == this.Id).ToArray(); + } + } + public int Reputation { get