Exemple #1
0
        protected void BtnInsert_Click(object sender, EventArgs e)
        {
            //// REGISTRANDO PACIENTE
            Service objService = GetValues();
            // ACCEDIENDO AL WEB SERVICE
            WSService wsservice = new WSService();
            bool      response  = wsservice.InsertService(objService);

            if (response)
            {
                this.divSuccess.Visible = true;
                this.TextSuccess.Text   = "¡Servicio creado con éxito!";
                this.txtName.Text       = string.Empty;
            }
            else
            {
                this.divError.Visible = true;
                this.TextError.Text   = "¡El servicio no fue creado!";
            }
        }