diff options
| author | Michael <[email protected]> | 2017-05-07 09:33:23 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-07 09:33:23 -0400 |
| commit | 2fdd32182c6cac6bc4d08ffca52cc64ba3d5fba6 (patch) | |
| tree | 4fbf8e382bc331d7dbf6ae272381a5ed32bb8c7a /Project-Unite/Models/Group.cs | |
| parent | 47a8fdc9c725bfa468e77366e6d136400ef5e947 (diff) | |
| download | project-unite-2fdd32182c6cac6bc4d08ffca52cc64ba3d5fba6.tar.gz project-unite-2fdd32182c6cac6bc4d08ffca52cc64ba3d5fba6.tar.bz2 project-unite-2fdd32182c6cac6bc4d08ffca52cc64ba3d5fba6.zip | |
add users field to group table
Diffstat (limited to 'Project-Unite/Models/Group.cs')
| -rw-r--r-- | Project-Unite/Models/Group.cs | 9 |
1 files changed, 9 insertions, 0 deletions
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 @@ namespace Project_Unite.Models 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 |
