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

namespace PARR.DAL.Repositories.JobGroupRepositories
{
    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);
        }
    }
}
