diff options
| author | Michael <[email protected]> | 2017-03-24 15:36:06 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-03-24 15:36:06 -0400 |
| commit | c29c1366213c06503e875e43ed251a1d96003acb (patch) | |
| tree | 6fb41834d9ff132a10dbebe7885565f56e682956 | |
| parent | ac2cf7171b10e44100d100379329e8b26a0c8014 (diff) | |
| download | project-unite-c29c1366213c06503e875e43ed251a1d96003acb.tar.gz project-unite-c29c1366213c06503e875e43ed251a1d96003acb.tar.bz2 project-unite-c29c1366213c06503e875e43ed251a1d96003acb.zip | |
confusion
| -rw-r--r-- | Project-Unite/ACL.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Project-Unite/ACL.cs b/Project-Unite/ACL.cs index 841aeb9..8ed4488 100644 --- a/Project-Unite/ACL.cs +++ b/Project-Unite/ACL.cs @@ -17,7 +17,7 @@ namespace Project_Unite public static IHtmlString NotificationCount(this HtmlHelper hpr, string uid) { var db = new ApplicationDbContext(); - var usr = db.Users.FirstOrDefault(x => x.Id == uid); + var usr = db.Users.FirstOrDefault(x => x.Id == uid||x.UserName==uid); if (usr == null) return hpr.Raw("N/A"); return hpr.Raw(usr.UnreadNotifications.ToString()); |
