feat(api): TemplateHistoryController
This commit is contained in:
@@ -87,6 +87,7 @@ namespace PARR.DAL
|
||||
services.AddTransient<IJobAutoControlService, JobAutoControlService>();
|
||||
services.AddTransient<IJobEkMaskService, JobEkMaskService>();
|
||||
services.AddTransient<ITemplateHistoryService, TemplateHistoryService>();
|
||||
services.AddTransient<IParrComponentService, ParrComponentService>();
|
||||
|
||||
|
||||
// TransformServices
|
||||
|
||||
21
PARR.DAL/Services/Implementations/ParrComponentService.cs
Normal file
21
PARR.DAL/Services/Implementations/ParrComponentService.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
9
PARR.DAL/Services/Interfaces/IParrComponentService.cs
Normal file
9
PARR.DAL/Services/Interfaces/IParrComponentService.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using PARR.DAL.Models;
|
||||
|
||||
namespace PARR.DAL.Services.Interfaces
|
||||
{
|
||||
public interface IParrComponentService
|
||||
{
|
||||
IQueryable<ParrComponent> Get();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user