コード例 #1
0
        protected void DeleteButton_Click(object sender, EventArgs e)
        {
            DiscountBL discountBL = new DiscountBL();

            discountBL.DeleteDiscount(GetDiscount());

            Response.Redirect("~/WebPages/Discounts.aspx");
        }
コード例 #2
0
 public List<Discount> GetDiscounts()
 {
     DiscountBL bl = new DiscountBL();
     return bl.GetDiscounts().ToList();
 }