feat: add Person search endpoint with SearchPersons method
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user