public int GetNotificationsCount(List <Project> projects) { var ManagerNotificationCount = 0; foreach (var proj in projects) { ProjectHelper.CreateProjectManagerNotification(proj); var checkedNotifcation = proj.NotificationManagers.Where(n => n.IsChecked == false).ToList(); ManagerNotificationCount += checkedNotifcation.Count(); } return(ManagerNotificationCount); }