feat(api): TemplateHistoryController

This commit is contained in:
Mikhail Trubnikov
2024-10-08 13:53:57 +10:00
parent 4ba5ad3a14
commit 7155156f66
12 changed files with 254 additions and 0 deletions

View File

@@ -87,6 +87,7 @@ namespace PARR.DAL
services.AddTransient<IJobAutoControlService, JobAutoControlService>();
services.AddTransient<IJobEkMaskService, JobEkMaskService>();
services.AddTransient<ITemplateHistoryService, TemplateHistoryService>();
services.AddTransient<IParrComponentService, ParrComponentService>();
// TransformServices

View File

@@ -0,0 +1,21 @@
using PARR.DAL.Context;
using PARR.DAL.Models;
using PARR.DAL.Services.Interfaces;
namespace PARR.DAL.Services.Implementations
{
internal class ParrComponentService : IParrComponentService
{
private readonly DataContext dataContext;
public ParrComponentService(DataContext dataContext)
{
this.dataContext = dataContext;
}
public IQueryable<ParrComponent> Get()
{
return dataContext.ParrComponents;
}
}
}

View File

@@ -0,0 +1,9 @@
using PARR.DAL.Models;
namespace PARR.DAL.Services.Interfaces
{
public interface IParrComponentService
{
IQueryable<ParrComponent> Get();
}
}