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(); } }