source:
ChapterX.Domain/Repositories/ILikesRepository.cs
| Last change on this file was 73b69b2, checked in by , 3 months ago | |
|---|---|
|
|
| File size: 481 bytes | |
| Line | |
|---|---|
| 1 | using ChapterX.Domain.Entities; |
| 2 | |
| 3 | namespace ChapterX.Domain.Repositories |
| 4 | { |
| 5 | public interface ILikesRepository : IRepository<Likes> |
| 6 | { |
| 7 | Task<IEnumerable<Likes>> GetByStoryIdAsync(int storyId, CancellationToken cancellationToken = default); |
| 8 | Task<bool> DeleteByUserAndStoryAsync(int userId, int storyId, CancellationToken cancellationToken = default); |
| 9 | Task<bool> ExistsAsync(int userId, int storyId, CancellationToken cancellationToken = default); |
| 10 | } |
| 11 | } |
Note:
See TracBrowser
for help on using the repository browser.
