add users field to group table

This commit is contained in:
Michael 2017-05-07 09:33:23 -04:00
parent 47a8fdc9c7
commit 2fdd32182c

View file

@ -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