public async Task <IReadOnlyCollection <NotificationModel> > GetAllNotifications() { var notifications = await notificationsAccess.GetAllNotifications(); return(new ReadOnlyCollection <NotificationModel>(notifications)); }
public IReadOnlyCollection <NotificationModel> GetAllNotifications() => _notificationsAccess.GetAllNotifications().ToList();