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