feat(api): список статусов ЭК
This commit is contained in:
@@ -61,6 +61,7 @@ namespace PARR.DAL
|
||||
services.AddTransient<IUserService, UserService>();
|
||||
services.AddTransient<IRoleService, RoleService>();
|
||||
services.AddTransient<ITaskStatusService, TaskStatusService>();
|
||||
services.AddTransient<IEkStatusService, EkStatusService>();
|
||||
|
||||
// TransformServices
|
||||
services.AddTransient<IEsppScheduleTransformService, EsppScheduleTransformService>();
|
||||
|
||||
20
PARR.DAL/Services/Implementations/EkStatusService.cs
Normal file
20
PARR.DAL/Services/Implementations/EkStatusService.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using PARR.DAL.Context;
|
||||
using PARR.DAL.Models;
|
||||
using PARR.DAL.Services.Interfaces;
|
||||
|
||||
namespace PARR.DAL.Services.Implementations
|
||||
{
|
||||
internal class EkStatusService : IEkStatusService
|
||||
{
|
||||
private readonly DataContext dataContext;
|
||||
|
||||
public EkStatusService(DataContext dataContext)
|
||||
{
|
||||
this.dataContext = dataContext;
|
||||
}
|
||||
public IQueryable<EkStatus> Get()
|
||||
{
|
||||
return dataContext.EkStatuses;
|
||||
}
|
||||
}
|
||||
}
|
||||
9
PARR.DAL/Services/Interfaces/IEkStatusService.cs
Normal file
9
PARR.DAL/Services/Interfaces/IEkStatusService.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using PARR.DAL.Models;
|
||||
|
||||
namespace PARR.DAL.Services.Interfaces
|
||||
{
|
||||
public interface IEkStatusService
|
||||
{
|
||||
IQueryable<EkStatus> Get();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user