aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Data/Repositories/Contracts/IPostRepository.cs
blob: 930138af70f0af1ba15db5b1b5e797bdef495515 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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);
	}
}