using ChapterX.Domain.Entities; using ChapterX.Domain.Repositories; using ChapterX.Infrastructure.Data.DataContext; using Microsoft.EntityFrameworkCore; namespace ChapterX.Infrastructure.Repositories { public class NotificationRepository : GenericRepository, INotificationRepository { public NotificationRepository(ApplicationDbContext context) : base(context) { } // Currently Notification is not linked directly to a User entity. // This method returns all notifications; adjust filter when a User relation is added. public async Task> GetByUserIdAsync(int userId, CancellationToken cancellationToken = default) { return await _dbSet.ToListAsync(cancellationToken); } } }