// Sets up Notification dropdown public void FillNotifications() { int empId = (int)Session["empId"]; notifList = NotificationBL.GetNotifications(empId); lblNotifCount.Text = notifList.Where(x => x.IsRead == false).Count().ToString(); notifList = notifList.OrderByDescending(x => x.NotificationDateTime).Take(10).ToList(); lstNotifications.DataSource = notifList; lstNotifications.DataBind(); }
public List <Notification> GetNotifications() { return(_notificationLogic.GetNotifications()); }