aboutsummaryrefslogtreecommitdiff
path: root/src/Data/DevHive.Data/Interfaces/IRatingRepository.cs
blob: b5aff88d9c436243181845b62e3175667c54a0d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
using System;
using System.Threading.Tasks;
using DevHive.Data.Models;
using DevHive.Data.Repositories.Interfaces;

namespace DevHive.Data.Interfaces
{
	public interface IRatingRepository : IRepository<Rating>
	{
		Task<Rating> GetRatingByPostId(Guid postId);
		Task<bool> UserRatedPost(Guid userId, Guid postId);
	}
}