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;
        }
Пример #2
0
 public bool Update(Product entity)
 {
     return true;
 }
Пример #3
0
 public bool Insert(Product entity)
 {
     return true;
 }