blob: 7a9c02e95a2277b61e4cb3feb7d8ba65899e6dfc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
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<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);
}
}
|