aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Data/Interfaces/Repositories/IPostRepository.cs
blob: 913d8c4953c824b2b995dbab60986eceb7a307b8 (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.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);
	}
}