public async Task <IActionResult> GetById(int id) { if (!ModelState.IsValid) { return(BadRequest()); } var persona = await _personaServicio.GetById(id); if (persona == null) { return(NotFound()); } return(Ok(persona)); }