feat: разделение на repository - services
This commit is contained in:
@@ -3,26 +3,15 @@ using Microsoft.Extensions.Logging;
|
||||
using PARR.Constants;
|
||||
using PARR.DAL.Context;
|
||||
using PARR.DAL.Models;
|
||||
using PARR.DAL.Services.Abstracts;
|
||||
using PARR.DAL.Repositories.Base;
|
||||
using PARR.DAL.Services.Interfaces;
|
||||
using PARR.Domain.Enums;
|
||||
|
||||
namespace PARR.DAL.Services.Implementations
|
||||
{
|
||||
internal class RobotConfigurationService : BaseService<RobotConfiguration>, IRobotConfigurationService
|
||||
internal class RobotConfigurationService : BaseRepository<RobotConfiguration>, IRobotConfigurationService
|
||||
{
|
||||
private readonly DataContext dataContext;
|
||||
private readonly ILogger<RobotConfigurationService> logger;
|
||||
|
||||
public RobotConfigurationService(DataContext dataContext, ILogger<RobotConfigurationService> logger) : base(logger)
|
||||
{
|
||||
this.dataContext = dataContext;
|
||||
this.logger = logger;
|
||||
}
|
||||
|
||||
protected override DbSet<RobotConfiguration> EntitySet => dataContext.RobotConfigurations;
|
||||
|
||||
protected override DataContext EntitiContext => dataContext;
|
||||
public RobotConfigurationService(DataContext dataContext, ILogger<RobotConfigurationService> logger) : base(logger, dataContext) { }
|
||||
|
||||
|
||||
public void ChangeTaskStatus(TaskStatusEnum taskStatus, RobotConfiguration configuration)
|
||||
|
||||
Reference in New Issue
Block a user