private void btnDiscardParticipation_Click(object sender, EventArgs e) { string token = Session.Token; dynamic parameters = new System.Dynamic.ExpandoObject(); parameters.idPurchaseRequest = Session.id; parameters.idProducer = Session.IdProfile; var discardParticipation = VirtualFairIntegration.DestroySalesProcessesProducer(token, parameters); if (discardParticipation.statusCode == 200) { string text = discardParticipation.message; string title = "Información"; MessageBox.Show(text, title, MessageBoxButtons.OK, MessageBoxIcon.Information); var salesProcesses = new SalesProcesses(); salesProcesses.Show(); this.Close(); } }