using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;
using PARR.DAL.Context;
using PARR.DAL.Models;
using PARR.DAL.Services.Abstracts;
using PARR.DAL.Services.Interfaces;

namespace PARR.DAL.Services.Implementations
{
    internal class DistributionPeriodService : BaseService<DistributionPeriod>, IDistributionPeriodService
    {
        private readonly DataContext dataContext;

        protected override DbSet<DistributionPeriod> EntitySet => dataContext.DistributionPeriods;

        protected override DataContext EntitiContext => dataContext;

        public DistributionPeriodService(DataContext dataContext, ILogger<DistributionPeriodService> logger) : base(logger)
        {
            this.dataContext = dataContext;
        }
    }
}
