feat(api): ResponseAreaController getAll. WorkGroupController, getAll, добавлен фильтр по ЗО.

This commit is contained in:
Mikhail Trubnikov
2024-08-16 13:59:27 +10:00
parent 0f3def4b3a
commit ecd24cd94b
7 changed files with 105 additions and 0 deletions

View File

@@ -83,6 +83,7 @@ namespace PARR.DAL
services.AddTransient<IWeekendDayService, WeekendDayService>();
services.AddTransient<IDistributionPeriodService, DistributionPeriodService>();
services.AddTransient<IEsppSchTypeValueService, EsppSchTypeValueService>();
services.AddTransient<IResponseAreaService, ResponseAreaService>();

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 ResponseAreaService : IResponseAreaService
{
private readonly DataContext dataContext;
public ResponseAreaService(DataContext dataContext)
{
this.dataContext = dataContext;
}
public IQueryable<ResponseArea> Get()
{
return dataContext.ResponseAreas;
}
}
}

View File

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