Ejemplo n.º 1
0
 protected void ButtonStock_Click(object sender, EventArgs e)
 {
     if (TextPrice.Text != "" && TextAmmount.Text != "")
     {
         StockBusiness stockBusiness = new StockBusiness();
         int           newammount    = producto.stock.ammount + int.Parse(TextAmmount.Text);
         decimal       newprice      = Decimal.Parse(TextPrice.Text);
         stockBusiness.updatestock(producto.code, newammount, newprice);
         Response.Redirect("VerProductoAdmin.aspx?prod=" + producto.code);
     }
 }