Website Summary Files Commits Branches @commit @diff @stats
path: root / src / DevHive.Data / Interfaces / Repositories / IPostRepository.cs
diff options
context:
space:
mode:
Commit83f63ad729d585d597bdcf0afc05b7d56344223e (patch)
Author
 transtrike <transtrike@gmail.com>
2021-01-17 13:38:24 +0200
Committer
 transtrike <transtrike@gmail.com>
2021-01-17 13:38:24 +0200
Filesede845ad2790fe6f6f975f3cc5d776782adecf59 /src/DevHive.Data/Interfaces/Repositories/IPostRepository.cs
DevHive-83f63ad729d585d597bdcf0afc05b7d56344223e.tar
DevHive-83f63ad729d585d597bdcf0afc05b7d56344223e.tar.gz
DevHive-83f63ad729d585d597bdcf0afc05b7d56344223e.zip
Parentb4454f83c3b7d668fc8b18714a659b91576882be (diff)
Lang&Tech layers now return id on Create
1 files changed, 4 insertions, 0 deletions
-rw-r--r--src/DevHive.Data/Interfaces/Repositories/IPostRepository.cs4
diff --git a/src/DevHive.Data/Interfaces/Repositories/IPostRepository.cs b/src/DevHive.Data/Interfaces/Repositories/IPostRepository.cs
index 913d8c4..7a9c02e 100644
--- a/src/DevHive.Data/Interfaces/Repositories/IPostRepository.cs
+++ b/src/DevHive.Data/Interfaces/Repositories/IPostRepository.cs
@@ -9,12 +9,16 @@ namespace DevHive.Data.Interfaces.Repositories
{
Task<bool> AddCommentAsync(Comment entity);
+ Task<Post> GetPostByIssuerAndTimeCreatedAsync(Guid issuerId, DateTime timeCreated);
+
Task<Comment> GetCommentByIdAsync(Guid id);
+ Task<Comment> GetCommentByIssuerAndTimeCreatedAsync(Guid issuerId, DateTime timeCreated);
Task<bool> EditCommentAsync(Comment newEntity);
Task<bool> DeleteCommentAsync(Comment entity);
Task<bool> DoesCommentExist(Guid id);
+
Task<bool> DoesPostExist(Guid postId);
}
}