20 lines
684 B
C#
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);
|
|
}
|
|
}
|