feat(api): ResponseAreaController getAll. WorkGroupController, getAll, добавлен фильтр по ЗО.
This commit is contained in:
@@ -83,6 +83,7 @@ namespace PARR.DAL
|
||||
services.AddTransient<IWeekendDayService, WeekendDayService>();
|
||||
services.AddTransient<IDistributionPeriodService, DistributionPeriodService>();
|
||||
services.AddTransient<IEsppSchTypeValueService, EsppSchTypeValueService>();
|
||||
services.AddTransient<IResponseAreaService, ResponseAreaService>();
|
||||
|
||||
|
||||
|
||||
|
||||
21
PARR.DAL/Services/Implementations/ResponseAreaService.cs
Normal file
21
PARR.DAL/Services/Implementations/ResponseAreaService.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 ResponseAreaService : IResponseAreaService
|
||||
{
|
||||
private readonly DataContext dataContext;
|
||||
|
||||
public ResponseAreaService(DataContext dataContext)
|
||||
{
|
||||
this.dataContext = dataContext;
|
||||
}
|
||||
|
||||
public IQueryable<ResponseArea> Get()
|
||||
{
|
||||
return dataContext.ResponseAreas;
|
||||
}
|
||||
}
|
||||
}
|
||||
9
PARR.DAL/Services/Interfaces/IResponseAreaService.cs
Normal file
9
PARR.DAL/Services/Interfaces/IResponseAreaService.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using PARR.DAL.Models;
|
||||
|
||||
namespace PARR.DAL.Services.Interfaces
|
||||
{
|
||||
public interface IResponseAreaService
|
||||
{
|
||||
IQueryable<ResponseArea> Get();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user