protected void addSector_Click(object sender, EventArgs e) { psvm = new PersonaServiceModel(); if (psvm.addSector(new SCPM_SECTORES() { SEC_NOM = inSector.Text, SEC_EST = onSector.Checked }, Convert.ToInt32(ComboParroquia.SelectedValue))) { fillSectores(); HelperUtil.showNotifi("añadido"); } else { HelperUtil.showNotifi("no añadido"); } }
protected void addSector_Click(object sender, EventArgs e) { psvm = new PersonaServiceModel(); if (psvm.addSector(new SCPM_SECTORES() { SEC_NOM = inSector.Text, SEC_EST = onSector.Checked }, Convert.ToInt32(ComboParroquia.SelectedValue))) { fillSectores(); HelperUtil.showNotifi("añadido"); } else HelperUtil.showNotifi("no añadido"); }