public bool DeleteUserBankAcc(string IDBankAcc) { try { using (var eWalletTransactionUnitOfWork = new WalletTransactionUow(new WalletEntities())) { eWalletTransactionUnitOfWork.BeginTransaction(); var UserBankAcc = new UserBankAccountQueryBuilder(new WalletEntities()).HasID(IDBankAcc).FirstOrDefault(); eWalletTransactionUnitOfWork.DoDelete(UserBankAcc); eWalletTransactionUnitOfWork.EndTransaction(); } return(true); } catch (Exception ex) { var logWallet = new LogWallet(); Task.Factory.StartNew(() => logWallet.Log(MethodBase.GetCurrentMethod(), IDBankAcc, ex, "")); return(false); } }