feat(api): TemplateController - фильтр шаблонов по AppInWorkId
This commit is contained in:
@@ -64,6 +64,9 @@ namespace PARR.API.Controllers.V1
|
||||
if (!string.IsNullOrEmpty(filter.Mask))
|
||||
query = query.Where(t => EF.Functions.Like(t.Name.ToLower(), SqlHelpers.RegexToLike(filter.Mask)));
|
||||
|
||||
if (filter.AppInWorkId.HasValue)
|
||||
query = query.Where(t => t.ApplicationInWorkId == filter.AppInWorkId.Value);
|
||||
|
||||
var templates = await templateService.GetPage(query, paginationFilter).ToListAsync();
|
||||
|
||||
if (!templates.Any())
|
||||
|
||||
Reference in New Issue
Block a user