feat(api): Application GetAll, Work GetAll - добавлены фильтры по id
This commit is contained in:
@@ -55,6 +55,9 @@ namespace PARR.API.Controllers.V1
|
||||
if (filter.TypeId.HasValue)
|
||||
query = query.Where(t => t.ApplicationTypeId == filter.TypeId);
|
||||
|
||||
if (filter.Id.HasValue)
|
||||
query = query.Where(t => t.Id == filter.Id);
|
||||
|
||||
|
||||
var apps = await applicationService.GetPage(query, paginationFilter).ToListAsync();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user