public void AtualizarItem(string codigo, string key) { if (key != "3kl4j3lk5n3lk3j43kl4j34n3,m4n34k34hj3l4h34nm3,.n43") { throw new Exception("Chave inválida"); } PKGItens p = new PKGItens(); p.AtualizarItem(codigo); }
private void AtualizaTodosItens(string JsonAuction) { PKGItens pkg = new PKGItens(); List<string> l = new List<string>(); Object[] Auct = RetornaArraydeAuctions(JsonAuction); foreach (Dictionary<string, object> item in Auct) { if (!l.Any(x => x == item["item"].ToString())) { pkg.AtualizarItem(item["item"].ToString()); l.Add(item["item"].ToString()); } } }