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