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

19 lines
363 B
C#

using HackerNet.Domain;
namespace HackerNet.Infrastructure.Repositories.EntityFramework;
public class EFLinkRepository : ILinkRepository
{
private readonly HackerContext _context;
public EFLinkRepository(HackerContext context)
{
_context = context;
}
public void Add(Link link)
{
_context.Links.Add(link);
_context.SaveChanges();
}
}