using Microsoft.Extensions.Logging;
using PARR.Core.Repositories.Interfaces.Job;
using PARR.DAL.Context;
using PARR.DAL.Repositories.Base;
using PARR.Domain.Entities.Job;

namespace PARR.DAL.Repositories.Job
{
    internal class JobGroupRepository : BaseRepository<JobGroup>, IJobGroupRepository
    {
        public JobGroupRepository(DataContext dataContext, ILogger<JobGroupRepository> logger) : base(logger, dataContext) { }


        public void DeleteDistributionConfig(JobGroupDistributionConfig distributionConfig)
        {
            EntityContext.JobGroupDistributionConfigs.Remove(distributionConfig);
        }
    }
}
