feat(api): TnkController в GetAll добавлен поиск по имени ТНК

This commit is contained in:
Mikhail Kuznetsov
2025-09-11 16:45:33 +10:00
parent 19882da465
commit 14519a843d
2 changed files with 8 additions and 0 deletions

View File

@@ -59,6 +59,9 @@ namespace PARR.API.Controllers.V1
IQueryable<Tnk> query = tnkService.Get()
.OrderBy(t => t.Name);
if (!string.IsNullOrEmpty(filter.Name))
query = query.Where(t => t.Name.ToLower().Contains(filter.Name.ToLower()));
if (filter.SubprocessId.HasValue)
query = query.Where(t => t.SubprocessId == filter.SubprocessId);