feat: rename project hierarchy search components and add validation for search query

This commit is contained in:
2026-01-04 15:50:56 +03:30
parent 1f365f3642
commit c2fca9f9eb
6 changed files with 17 additions and 30 deletions

View File

@@ -42,10 +42,10 @@ public class ProjectController : ProgramManagerBaseController
}
[HttpGet("search")]
public async Task<ActionResult<OperationResult<GetProjectHierarchySearchResponse>>> Search(
public async Task<ActionResult<OperationResult<GetProjectSearchResponse>>> Search(
[FromQuery] string query)
{
var searchQuery = new GetProjectHierarchySearchQuery(query);
var searchQuery = new GetProjectSearchQuery(query);
var res = await _mediator.Send(searchQuery);
return res;
}