public async Task <IActionResult> GetByFilter(string filtro) { if (!ModelState.IsValid) { return(BadRequest()); } var personas = await _personaServicio.GetByFilter(filtro); if (personas == null) { return(NotFound()); } return(Ok(personas)); }