public ActionResult <CommandReadDto> GetCommandBySPId(int id)
        {
            var result = _repository.GetCommandBySPId(id);

            // ICommanderRepo mysql = new MySqlCommanderRepo(SqlHerramienta.Conectar(_configuration.GetConnectionString("AgendaElectronicaDB")));

            // var result = mysql.GetCommandByMysqlId(id);
            if (result != null)
            {
                // return Ok(_mapper.Map<CommandReadDto>(result));
                return(Ok(result));
            }
            return(NotFound());
        }