2021-12-15 10:22:55 +01:00

19 lines
384 B
C#

using HackerNet.Domain;
namespace HackerNet.Infrastructure.Repositories.EntityFramework;
public class EFCommentRepository : ICommentRepository
{
private readonly HackerContext _context;
public EFCommentRepository(HackerContext context)
{
_context = context;
}
public void Add(Comment comment)
{
_context.Comments.Add(comment);
_context.SaveChanges();
}
}