public ListDto <PersonDto, int> GetAll(GetAllPeopleDto request) => _service.GetAll <PersonDto>(request, p => request.Name.IsNullOrEmpty() || p.Name.Contains(request.Name));
public IActionResult Get([FromQuery] GetAllPeopleDto requestDto) { var response = _personAppService.GetAll(requestDto); return(CreateResponseOnGetAll(response, PERSON_NAME)); }