public ResponseToAllTransactionsOfClient MovimientosCuenta(string identifier, string password) { RequestAllTransactionsOfClient request = new RequestAllTransactionsOfClient(identifier, password); ResponseToAllTransactionsOfClient response = ResponseToAllTransactionsOfClient.ResponseToAllTransactionsOfTheClient(request); return(response); }
public ResponseToAllTransactionsOfClient AllTransactionsOfClient(string identifier, string pin) { RequestAllTransactionsOfClient b = new RequestAllTransactionsOfClient(identifier, pin); ResponseToAllTransactionsOfClient y = ResponseToAllTransactionsOfClient.ResponseToAllTransactionsOfTheClient(b); return(y); }
public ResponseToAllTransactionsOfClient ToAllTransactionsOfClient(RequestAllTransactionsOfClient requestAllTransactionsOfClient) { ResponseToAllTransactionsOfClient objToAllTransactionsOfClient = new ResponseToAllTransactionsOfClient(); string identifier; identifier = requestAllTransactionsOfClient.Identifier; var transactionTbl = entities.transactionTables.ToList(); try { foreach (transactionTable transaction in transactionTbl) { Transaction tempTransaction = new Transaction(); tempTransaction.Account_affected = transaction.ACCOUNT_AFFECTED; tempTransaction.Account_root = transaction.ACCOUNT_ROOT; tempTransaction.Balance = transaction.BALANCE; tempTransaction.Description1 = transaction.DESCRIPTION; tempTransaction.Identifier_affected = transaction.IDENTIFIER_AFFECTED; tempTransaction.Identifier_root = transaction.IDENTIFIER_ROOT; tempTransaction.Transaction_Date = transaction.TRANSDATE; objToAllTransactionsOfClient.Transactions.Add(tempTransaction); } objToAllTransactionsOfClient.Success = true; objToAllTransactionsOfClient.Message = "Se ha encontrado todas las transacciones!"; } catch { objToAllTransactionsOfClient.Success = false; objToAllTransactionsOfClient.Message = "No se ha encontrado las transacciones, verifique sus datos"; } objToAllTransactionsOfClient.Trans_Count = objToAllTransactionsOfClient.Transactions.Count; return(objToAllTransactionsOfClient); }