diff options
| author | transtrike <transtrike@gmail.com> | 2021-01-11 23:49:34 +0200 |
|---|---|---|
| committer | transtrike <transtrike@gmail.com> | 2021-01-11 23:49:34 +0200 |
| commit | 5d67bc4725c45515f0fdbd926cbf2752a794224f (patch) | |
| tree | 884a80c98d37d6292c14937c74df34f44e9189b0 /src/DevHive.Data/Repositories/Contracts/IPostRepository.cs | |
| parent | 0412b54d5ed02e1482a31c7f15866d5539adca7d (diff) | |
| parent | 407bc2cb7edd7b50967b691504176ca5c52586a0 (diff) | |
| download | DevHive-5d67bc4725c45515f0fdbd926cbf2752a794224f.tar DevHive-5d67bc4725c45515f0fdbd926cbf2752a794224f.tar.gz DevHive-5d67bc4725c45515f0fdbd926cbf2752a794224f.zip | |
Merge branch 'dev' of github.com:Team-Kaleidoscope/DevHive into dev
Diffstat (limited to 'src/DevHive.Data/Repositories/Contracts/IPostRepository.cs')
| -rw-r--r-- | src/DevHive.Data/Repositories/Contracts/IPostRepository.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/DevHive.Data/Repositories/Contracts/IPostRepository.cs b/src/DevHive.Data/Repositories/Contracts/IPostRepository.cs new file mode 100644 index 0000000..930138a --- /dev/null +++ b/src/DevHive.Data/Repositories/Contracts/IPostRepository.cs @@ -0,0 +1,21 @@ +using DevHive.Data.Models; +using System; +using System.Threading.Tasks; + +namespace DevHive.Data.Repositories.Contracts +{ + public interface IPostRepository : IRepository<Post> + { + public Task<bool> AddCommentAsync(Comment entity); + + public Task<Comment> GetCommentByIdAsync(Guid id); + + public Task<bool> EditCommentAsync(Comment newEntity); + + public Task<bool> DeleteCommentAsync(Comment entity); + + public Task<bool> DoesPostExist(Guid postId); + + public Task<bool> DoesCommentExist(Guid id); + } +} |
