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

namespace PARR.DAL.Services.Implementations.Schedule
{
    internal class ScheduleExcludeTypeService : BaseService<ScheduleExcludeType>, IScheduleExcludeTypeService
    {
        private readonly DataContext dataContext;

        protected override DbSet<ScheduleExcludeType> EntitySet => dataContext.ScheduleExcludeTypes;

        protected override DataContext EntitiContext => dataContext;

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