protected void LinkButton1_Command(object sender, CommandEventArgs e)
 {
     InvoiceLogic il = new InvoiceLogic();
     Invoice i1 = il.SelectByID(Convert.ToInt32(e.CommandArgument));
     if (i1 != null)
     {
         int i = il.Delete(i1.InvoiceID);
         Response.Redirect("ViewInvoice.aspx");
     }
 }
示例#2
0
    protected void LinkButton1_Command(object sender, CommandEventArgs e)
    {
        InvoiceLogic il = new InvoiceLogic();
        Invoice      i1 = il.SelectByID(Convert.ToInt32(e.CommandArgument));

        if (i1 != null)
        {
            int i = il.Delete(i1.InvoiceID);
            Response.Redirect("ViewInvoice.aspx");
        }
    }
示例#3
0
        public int DeleteInvoice(Invoice invoice)
        {
            InvoiceLogic invoiceLogic = this.AbstractProvider.GetAbstractCommonBL <InvoiceLogic>();

            return(invoiceLogic.Delete(invoice.ID));
        }