async private void DeleteTour(object sender, EventArgs e) { DialogResult result1 = MessageBox.Show(Constants.DeleteTourConfirmation1 + tourAsociado.name + Constants.DeleteTourConfirmation2, Constants.DeleteTourTitle, MessageBoxButtons.YesNo); if (result1 == DialogResult.Yes) { var tourController = new TourController(); var result = await tourController.DeleteTourAsync(this.tourAsociado._id); Constants.tours = tourController.GetAllToursAsync().Result; this.Hide(); MenuForm2 parent = this.Parent as MenuForm2; parent.ArrangeCardGrid(); } }