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