示例#1
0
 protected void grvOrders_RowDeleting(object sender, GridViewDeleteEventArgs e)
 {
     ordBLL.Delete(int.Parse(grvOrders.DataKeys[e.RowIndex].Value.ToString()));
     grvOrders.DataSource = ordBLL.GetAllOrders();
     grvOrders.DataBind();
     Response.Redirect("/AdminCP/ListOrders.aspx");
 }
        public int Delete(int Id)
        {
            var result = bll.Delete(Id);

            return(result);
        }
示例#3
0
        public int Delete(Orders parameter)
        {
            OrdersBLL bll = new OrdersBLL();

            return(bll.Delete(parameter));
        }