This commit is contained in:
Michael 2017-03-24 15:32:39 -04:00
parent 7c76a963c8
commit ac2cf7171b

View file

@ -33,7 +33,7 @@ public static IHtmlString NewestUser(this HtmlHelper hpr)
return hpr.Raw("<a href=\"/Profiles/ViewProfile/" + user.DisplayName + "\"><span class=\"glyphicon glyphicon-star\"></span> Our newest user, <strong>" + user.DisplayName + "</strong></a>"); return hpr.Raw("<a href=\"/Profiles/ViewProfile/" + user.DisplayName + "\"><span class=\"glyphicon glyphicon-star\"></span> Our newest user, <strong>" + user.DisplayName + "</strong></a>");
} }
public static IHtmlString GetLatestNotifications(this HtmlHelper hpr, string userName) public static IHtmlString GetLatestUnread(this HtmlHelper hpr, string userName)
{ {
var db = new ApplicationDbContext(); var db = new ApplicationDbContext();
var user = db.Users.FirstOrDefault(x => x.UserName == userName); var user = db.Users.FirstOrDefault(x => x.UserName == userName);