diff options
| author | transtrike <transtrike@gmail.com> | 2021-01-13 11:05:26 +0200 |
|---|---|---|
| committer | transtrike <transtrike@gmail.com> | 2021-01-13 11:05:26 +0200 |
| commit | 6deaa6edcd8e347d5ed28ee3389cb8712cc64ea3 (patch) | |
| tree | 620b8867f3b5f96aa76c0e5e38e985db91498696 /src/DevHive.Data/Interfaces/IPostRepository.cs | |
| parent | 8a18cdf741bed465b4b24626e15370c33365cf11 (diff) | |
| download | DevHive-6deaa6edcd8e347d5ed28ee3389cb8712cc64ea3.tar DevHive-6deaa6edcd8e347d5ed28ee3389cb8712cc64ea3.tar.gz DevHive-6deaa6edcd8e347d5ed28ee3389cb8712cc64ea3.zip | |
The return of the interfaces
Diffstat (limited to 'src/DevHive.Data/Interfaces/IPostRepository.cs')
| -rw-r--r-- | src/DevHive.Data/Interfaces/IPostRepository.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/DevHive.Data/Interfaces/IPostRepository.cs b/src/DevHive.Data/Interfaces/IPostRepository.cs new file mode 100644 index 0000000..9c75ecc --- /dev/null +++ b/src/DevHive.Data/Interfaces/IPostRepository.cs @@ -0,0 +1,20 @@ +using System; +using System.Threading.Tasks; +using DevHive.Data.Models; +using DevHive.Data.Repositories.Interfaces; + +namespace DevHive.Data.Interfaces +{ + public interface IPostRepository : IRepository<Post> + { + Task<bool> AddCommentAsync(Comment entity); + + Task<Comment> GetCommentByIdAsync(Guid id); + + Task<bool> EditCommentAsync(Comment newEntity); + + Task<bool> DeleteCommentAsync(Comment entity); + Task<bool> DoesCommentExist(Guid id); + Task<bool> DoesPostExist(Guid postId); + } +}
\ No newline at end of file |
