public static string DeletePurchaseInvoice(string invoiceNo, int empID) { using (AprosysAccountingEntities db = new AprosysAccountingEntities()) { var obj = db.DeletePurchase(invoiceNo, empID); } return("success"); }