aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Data/Interfaces/Repositories/IPostRepository.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DevHive.Data/Interfaces/Repositories/IPostRepository.cs')
-rw-r--r--src/DevHive.Data/Interfaces/Repositories/IPostRepository.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/DevHive.Data/Interfaces/Repositories/IPostRepository.cs b/src/DevHive.Data/Interfaces/Repositories/IPostRepository.cs
new file mode 100644
index 0000000..913d8c4
--- /dev/null
+++ b/src/DevHive.Data/Interfaces/Repositories/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.Repositories
+{
+ 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);
+ }
+}