コード例 #1
0
        public async Task <IReadOnlyCollection <NotificationModel> > GetAllNotifications()
        {
            var notifications = await notificationsAccess.GetAllNotifications();

            return(new ReadOnlyCollection <NotificationModel>(notifications));
        }
コード例 #2
0
 public IReadOnlyCollection <NotificationModel> GetAllNotifications()
 => _notificationsAccess.GetAllNotifications().ToList();