예제 #1
0
 protected void ButtonADDPlate_Click(object sender, EventArgs e)
 {
     try
     {
         getDataToInsert();
         bll.InsertPlate(name, description, price, ref photo, enabled, timeToPrepare);
         alert("Nombre: " + name + " Descripcion: " + description +
               " Precio: " + price + " Tiempo de Cocina: " + timeToPrepare +
               " Habilitado: " + enabled);
         clear();
         load();
     }
     catch (ArgumentException ex)
     {
         alertException(ex.Message, ex);
         ClientScript.RegisterStartupScript(this.GetType(), "key", "showModal()", true);
     }
 }