Files
monorepo/LCU.API.Internal.Dispatcher/LCU.Api.Internal.DispatcherLib/Repositories/JobErrorRecipientRepository.cs
T
2026-04-22 15:01:09 +00:00

20 lines
684 B
C#

using System.Collections.Generic;
using LCU.Api.Internal.DispatcherLib.Persistence;
using LCU.Library.Internal.DispatcherModels.Entities;
namespace LCU.Api.Internal.DispatcherLib.Repositories;
public class JobErrorRecipientRepository : BaseRepository, IJobErrorRecipientRepository
{
public JobErrorRecipientRepository(AppDbContext context) : base(context) { }
public void AddList(ICollection<JobErrorRecipient> jobErrorRecipients)
{
_context.JobErrorRecipients.AddRange(jobErrorRecipients);
}
public void RemoveList(ICollection<JobErrorRecipient> jobErrorRecipients)
{
_context.JobErrorRecipients.RemoveRange(jobErrorRecipients);
}
}