1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
using System; using System.Collections.Generic; using System.Threading.Tasks; using DevHive.Data.Models; namespace DevHive.Data.Interfaces { public interface ICommentRepository : IRepository<Comment> { Task<List<Comment>> GetPostComments(Guid postId); Task<bool> DoesCommentExist(Guid id); Task<Comment> GetCommentByIssuerAndTimeCreatedAsync(Guid issuerId, DateTime timeCreated); } }