using System; using System.Threading.Tasks; using HN.Domain; using Microsoft.EntityFrameworkCore; namespace HN.Infrastructure.Repositories { public sealed class CommentRepository : Repository, ICommentRepository { public CommentRepository(HNDbContext context) : base(context) { } public Task AddAsync(Comment comment) { return base.AddAsync(comment); } public Task GetByIdAsync(Guid id) { return Entries.SingleOrDefaultAsync(o => o.Id == id); } } }