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; }
public bool Update(Product entity) { return true; }
public bool Insert(Product entity) { return true; }