protected void btnSave_Click(object sender, EventArgs e)
        {
            Product entity = new Product();

              System.Diagnostics.Debugger.Break();

              entity.ProductName = txtProductName.Value;
              if (!string.IsNullOrEmpty(txtIntroductionDate.Value))
            entity.IntroductionDate = HTMLDateToDotNet(txtIntroductionDate.Value);
              entity.Cost = Convert.ToDecimal(txtCost.Value);
              entity.Price = Convert.ToDecimal(txtPrice.Value);
              entity.IsDiscontinued = chkIsDiscontinued.Checked;
        }
Exemplo n.º 2
0
 public bool Update(Product entity)
 {
     return true;
 }
Exemplo n.º 3
0
 public bool Insert(Product entity)
 {
     return true;
 }