blob: db37d003aab56d024e1d625da7be60bb2118510a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using DevHive.Data.Models;
using DevHive.Data.Repositories.Interfaces;
namespace DevHive.Data.Interfaces
{
public interface IRatingRepository : IRepository<Rating>
{
Task<List<Rating>> GetRatingsByPostId(Guid postId);
Task<bool> UserRatedPost(Guid userId, Guid postId);
Task<Rating> GetRatingByUserAndPostId(Guid userId, Guid postId);
Task<bool> DoesRatingExist(Guid id);
}
}
|