25 lines
826 B
C#
25 lines
826 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.Extensions.Logging;
|
|
using PARR.DAL.Context;
|
|
using PARR.DAL.Models.V1;
|
|
using PARR.DAL.Services.Abstracts;
|
|
using PARR.DAL.Services.Interfaces;
|
|
|
|
namespace PARR.DAL.Services.Implementations
|
|
{
|
|
internal class JobCategoryService : BaseService<V1_JobCategory>, IJobCategoryService
|
|
{
|
|
private readonly DataContext dataContext;
|
|
private readonly ILogger<JobCategoryService> logger;
|
|
|
|
public JobCategoryService(DataContext dataContext, ILogger<JobCategoryService> logger) : base(logger)
|
|
{
|
|
this.dataContext = dataContext;
|
|
this.logger = logger;
|
|
}
|
|
protected override DbSet<V1_JobCategory> EntitySet => dataContext.JobCategories;
|
|
|
|
protected override DataContext EntitiContext => dataContext;
|
|
}
|
|
}
|