public MConfiguracion insertar(MConfiguracion obj)
        {
            conexion();
            string       query = "INSERT INTO configuracion(logo,nombre)VALUES('" + obj.foto + "','" + obj.nombre + "')";
            MySqlCommand cmd   = new MySqlCommand(query, con);

            cmd.ExecuteNonQuery();

            return(obj);
        }
        public MConfiguracion mostrarNombre()
        {
            conexion();
            string          query  = "SELECT * FROM configuracion order by pk_configuracion desc limit 1";
            MySqlCommand    cmd    = new MySqlCommand(query, con);
            MySqlDataReader cursor = cmd.ExecuteReader();

            MConfiguracion obj = new MConfiguracion();

            if (cursor.HasRows)
            {
                while (cursor.Read())
                {
                    obj.nombre = cursor["nombre"].ToString();
                }
            }
            cmd.Dispose();
            cursor.Dispose();
            con.Close();

            return(obj);
        }