feat: add Person search endpoint with SearchPersons method

This commit is contained in:
2026-06-09 01:29:57 +03:30
parent 9a42b96f41
commit e2afe8af9a
2 changed files with 37 additions and 0 deletions

View File

@@ -37,5 +37,14 @@ namespace Complex.EndPoint.Controllers
var persons = _personService.GetAllPersons(personSearchObj);
return persons;
}
[HttpPost]
public ResultDto<List<PersonDto>> SearchPersons([FromBody] PersonSearchRequest request)
{
return _personService.SearchPersons(request.SearchTerm);
}
}
public class PersonSearchRequest
{
public string? SearchTerm { get; set; }
}
}