Exemple #1
0
        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");
                //}
            }
        }
        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);
     }
 }