private void button1_Click(object sender, EventArgs e) { if (opcion == "UPDATE") { Federation oFederation = new Federation(); oFederation.FederationName = txtFedeName.Text; oFederation.FederatedNumber = 1; oFederation.FederationID = int.Parse(txtFedeId.Text); ServiceWebBL.addFederation(oFederation); } else { Federation oFederation = new Federation(); oFederation.FederationName = txtFedeName.Text; oFederation.FederatedNumber = 1; oFederation.FederationID = int.Parse(txtFedeId.Text); string response = ServiceWebBL.addFederation(oFederation); MessageBox.Show("Se registro correctamente la federacion"); Buscar(); //if (Convert.ToBoolean(response)) //{ // MessageBox.Show("Se registro correctamente la federacion"); //} //else { // MessageBox.Show("Ocurrrio un incidente al registrar la federacion"); //} } }
private void button1_Click(object sender, EventArgs e) { Skier oskier = new Skier(); oskier.NumberId = int.Parse(txtSkierId.Text); oskier.FederationID = 1; oskier.SkierName = txtSkierFullName.Text; oskier.Birthdate = DateTime.Now; ServiceWebBL.addSkier(oskier); }
public static void add() { Federation oFederation = new Federation(); oFederation.FederationID = 20; oFederation.FederationName = "dsadasdas"; oFederation.FederatedNumber = 1; ServiceWebBL.addFederation(oFederation); Skier oSkier = new Skier(); ServiceWebBL.addSkier(oSkier); }
private void button1_Click(object sender, EventArgs e) { if (opcion == "UPDATE") { Federation oFederation = new Federation(); oFederation.FederationName = txtFedeName.Text; oFederation.FederatedNumber = 1; oFederation.FederationID = int.Parse(txtFedeId.Text); ServiceWebBL.addFederation(oFederation); } else { Federation oFederation = new Federation(); oFederation.FederationName = txtFedeName.Text; oFederation.FederatedNumber = 1; oFederation.FederationID = int.Parse(txtFedeId.Text); ServiceWebBL.addFederation(oFederation); } }
private void button1_Click(object sender, EventArgs e) { Team oteam = new Team(); oteam.TeamId = Convert.ToInt32(txtTeamId.Text); oteam.TeamName = txtTeamName.Text; oteam.SkiersNumber = 1; string response = ServiceWebBL.addTeam(oteam); MessageBox.Show("Se registro correctamente la federacion"); Buscar(); //if (Convert.ToBoolean(response)) //{ // MessageBox.Show("Se registro correctamente la federacion"); //} //else { // MessageBox.Show("Ocurrrio un incidente al registrar la federacion"); //} }