Ejemplo n.º 1
0
    protected void addCanton_Click(object sender, EventArgs e)
    {
        psvm = new PersonaServiceModel();

        if (psvm.addCanton(new SCPM_CANTONES() { CAN_NOM = inCanton.Text, CAN_EST = onCanton.Checked }, Convert.ToInt32(comboProvincia.SelectedValue)))
        {
            fillCantones();
            HelperUtil.showNotifi("añadido");
        }
        else
            HelperUtil.showNotifi("no añadido");
    }
Ejemplo n.º 2
0
    protected void addCanton_Click(object sender, EventArgs e)
    {
        psvm = new PersonaServiceModel();

        if (psvm.addCanton(new SCPM_CANTONES()
        {
            CAN_NOM = inCanton.Text, CAN_EST = onCanton.Checked
        }, Convert.ToInt32(comboProvincia.SelectedValue)))
        {
            fillCantones();
            HelperUtil.showNotifi("añadido");
        }
        else
        {
            HelperUtil.showNotifi("no añadido");
        }
    }