mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-23 01:32:16 +00:00
confusion
This commit is contained in:
parent
ac2cf7171b
commit
c29c136621
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ public static class ACL
|
||||||
public static IHtmlString NotificationCount(this HtmlHelper hpr, string uid)
|
public static IHtmlString NotificationCount(this HtmlHelper hpr, string uid)
|
||||||
{
|
{
|
||||||
var db = new ApplicationDbContext();
|
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)
|
if (usr == null)
|
||||||
return hpr.Raw("N/A");
|
return hpr.Raw("N/A");
|
||||||
return hpr.Raw(usr.UnreadNotifications.ToString());
|
return hpr.Raw(usr.UnreadNotifications.ToString());
|
||||||
|
|
Loading…
Reference in a new issue