Exemplo n.º 1
0
        public ViewResult CreateLoanApplication(int Id)
        {
            LoanViewModel loanViewModel = new LoanViewModel();

            if (Id > 0)
            {
                loanViewModel = loanService.CreateViewModel(Id);

                var customerViewModel = customerService.CreateViewModel(loanViewModel.CustomerId);
                loanViewModel.CustomerViewModel = customerViewModel;

                var bankAccountViewModel = bankAccountService.CreateViewModel(loanViewModel.BankAccountId);
                loanViewModel.BankAccountViewModel = bankAccountViewModel;
            }
            //var bytes = PdfConverter("AppForm.html").Result;
            return(View("LoanApplication", loanViewModel));
        }