From c29c1366213c06503e875e43ed251a1d96003acb Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 24 Mar 2017 15:36:06 -0400 Subject: confusion --- Project-Unite/ACL.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); -- cgit v1.2.3