Beispiel #1
0
 protected void GuardarButton_Click(object sender, EventArgs e)
 {
     if (Comprobar() > 0)
     {
         if (LLenarDatos())
         {
             if (Configuracion.Editar())
             {
                 Mensajes.ShowToastr(this.Page, "Se Modifico", "Informacion", "Success");
             }
             else
             {
                 Mensajes.ShowToastr(this.Page, "No Se Modifico", "Error", "Error");
             }
         }
         else
         {
             Mensajes.ShowToastr(this.Page, "Faltan Datos", "Error", "Error");
         }
     }
     else
     {
         if (LLenarDatos())
         {
             if (Configuracion.Insertar())
             {
                 Mensajes.ShowToastr(this.Page, "Se Registro", "Felicidades", "Success");
             }
             else
             {
                 Mensajes.ShowToastr(this.Page, "No se pudo Registrar", "Error", "Error");
             }
         }
         else
         {
             Mensajes.ShowToastr(this.Page, "Faltan Datos", "Error", "Error");
         }
     }
 }