示例#1
0
        public Loan GetLoanById(string loanId, out TransactionResult transactionResult, string language)
        {
            transactionResult = new TransactionResult(false, "");
            var loan = loanManager.GetLoanById(loanId);

            if (loan == null)
            {
                transactionResult.HasError = true;
                transactionResult.Message  = language == "greek" ? "Το δάνειο δε βρέθηκε" : "The loan was not found";
            }
            return(loan);
        }