mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-22 17:22:15 +00:00
add users field to group table
This commit is contained in:
parent
47a8fdc9c7
commit
2fdd32182c
1 changed files with 9 additions and 0 deletions
|
@ -16,6 +16,15 @@ public class Group
|
||||||
|
|
||||||
public double RawReputation { get; set; }
|
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
|
public int Reputation
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|
Loading…
Reference in a new issue