public async Task UpdatePedido(Pedido p) { await Task.Factory.FromAsync(proxy.BeginUpdatePedido(p, null, null), proxy.EndUpdatePedido); }