protected void editCanton_Click(object sender, EventArgs e) { psvm = new PersonaServiceModel(); if (psvm.editCanton(new SCPM_CANTONES() { CAN_ID = Convert.ToInt32(ComboCanton.SelectedValue), CAN_NOM = inCanton.Text, CAN_EST = onCanton.Checked }, Convert.ToInt32(comboProvincia.SelectedValue))) { fillCantones(); HelperUtil.showNotifi("añadido"); } else { HelperUtil.showNotifi("no añadido"); } }
protected void editCanton_Click(object sender, EventArgs e) { psvm = new PersonaServiceModel(); if (psvm.editCanton(new SCPM_CANTONES() { CAN_ID = Convert.ToInt32(ComboCanton.SelectedValue), CAN_NOM = inCanton.Text, CAN_EST = onCanton.Checked }, Convert.ToInt32(comboProvincia.SelectedValue))) { fillCantones(); HelperUtil.showNotifi("añadido"); } else HelperUtil.showNotifi("no añadido"); }