public bool DeleteMenu(long MENU_ID = 0) { ManageMenuDa dataAccess = new ManageMenuDa(); long result = 0; using (var transaction = new TransactionScope()) { try { result = dataAccess.DeleteMenu(MENU_ID); if (result > 0) { transaction.Complete(); } } catch (Exception ex) { transaction.Dispose(); result = -1; throw new Exception(ex.Message, ex); } finally { transaction.Dispose(); } } return(result > 0); }