diff options
| author | Danail Dimitrov <danaildimitrov321@gmail.com> | 2021-01-11 22:17:07 +0200 |
|---|---|---|
| committer | Danail Dimitrov <danaildimitrov321@gmail.com> | 2021-01-11 22:17:07 +0200 |
| commit | 4f838ea0411445f6d7757273515062f2faac1ee7 (patch) | |
| tree | ba6bbd08464e1c84a9b648d33f159dbb1acc3caa /src/DevHive.Data/Repositories/Contracts/IPostRepository.cs | |
| parent | 66c18934c0bfe375b906da1b591e8cb02292f85f (diff) | |
| download | DevHive-4f838ea0411445f6d7757273515062f2faac1ee7.tar DevHive-4f838ea0411445f6d7757273515062f2faac1ee7.tar.gz DevHive-4f838ea0411445f6d7757273515062f2faac1ee7.zip | |
Added Interfaces for all repository classes
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); + } +} |
