- Timestamp:
- 03/24/26 22:13:36 (3 months ago)
- Branches:
- main
- Children:
- 7fbb91c
- Parents:
- acf690c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ChapterX.Infrastructure/Repositories/NotificationRepository.cs
racf690c r73b69b2 15 15 // This method returns all notifications; adjust filter when a User relation is added. 16 16 public async Task<IEnumerable<Notification>> GetByUserIdAsync(int userId, CancellationToken cancellationToken = default) 17 { 18 return await _dbSet.ToListAsync(cancellationToken); 19 } 17 => await _dbSet 18 .Where(n => n.RecipientUserId == userId) 19 .OrderByDescending(n => n.CreatedAt) 20 .ToListAsync(cancellationToken); 20 21 } 21 22 }
Note:
See TracChangeset
for help on using the changeset viewer.
