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

namespace PARR.DAL.Services.Implementations.Job
{
    internal class JobGroupTypeService : BaseService<JobGroupType>, IJobGroupTypeService
    {
        private readonly DataContext dataContext;
        private readonly ILogger<JobGroupTypeService> logger;

        protected override DbSet<JobGroupType> EntitySet => dataContext.JobGroupTypes;

        protected override DataContext EntitiContext => dataContext;
        public JobGroupTypeService(
            DataContext dataContext,
            ILogger<JobGroupTypeService> logger
            ) : base(logger)
        {
            this.dataContext = dataContext;
            this.logger = logger;
        }
    }
}
