public void OrderByDesceding() { if (NotificationList != null && NotificationList.Count() > 0) { NotificationList = NotificationList.OrderByDescending(x => x.NotificationId).ToList(); } }
public int GetUnacknowledgedNotificationCount() { return(NotificationList.Count(notification => !notification.Acknowledged)); }