Exemplo n.º 1
0
        public IActionResult GetLoanDetails(string loanId, bool isRequest)
        {
            var loanMgr = new LoanManager(_context, _configuration);
            var loan    = loanMgr.GetLoanDetails(loanId);

            if (isRequest == true)
            {
                loan.Documents = loanMgr.GetRequiredDocuments();
            }
            return(Ok(loan));
        }