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); }
public int Delete(Orders parameter) { OrdersBLL bll = new OrdersBLL(); return(bll.Delete(parameter)); }