public IActionResult Delete([FromRoute] int id)
        {
            var personaDb = _personasRepository.GetById(id);

            if (personaDb == null)
            {
                return(NotFound($"No se encontro una persona con id {id}"));
            }
            _personasRepository.Delete(id);
            return(NoContent());
        }
 public Persona Delete(long id)
 {
     return(personasRepository.Delete(id));
 }