public IList <NotificationAccess> GetNotificationAccessesForCurrentUser() { var loggedUser = AuthenticationProvider.GetLoggedUser(); var loggedUserRole = loggedUser.Role; var userNotificationAccesses = NotificationAccesses.Where(x => x.Users.Any(y => y == loggedUser) || x.AllowEveryone).ToList(); return(userNotificationAccesses); }
public IList <NotificationAccess> GetNotificationAccesses() { return(NotificationAccesses.ToList()); }