Пример #1
0
        public void DeleteDiscardedLoanChangeIndicators(string loanId)
        {
            Guid lid = Guid.Empty;

            if (!Guid.TryParse(loanId, out lid))
            {
                return;
            }

            LoanServiceFacade loanServiceFacade = new LoanServiceFacade();

            loanServiceFacade.DeleteDiscardedLoanChangeIndicators(lid);
        }
Пример #2
0
        public void SubmitForm(ReDisclosureModel model)
        {
            string counterOfferApproval = null;

            var userAccountId = IdentityManager.GetUserAccountId();

            LoanServiceFacade loanServiceFacade = new LoanServiceFacade();

            model.LoanChangeIndicators.ChangeOfCircumstancesIndicator = model.LoanChangeIndicators.ChangeOfCircumstanceList != null && model.LoanChangeIndicators.ChangeOfCircumstanceList.Exists(c => c.Checked);
            loanServiceFacade.SaveLoanChangeIndicators(userAccountId, model.LoanId, model.LoanChangeIndicators, counterOfferApproval, true);
            // Delete any previous LoanChangeIndicators which may had been created
            loanServiceFacade.DeleteDiscardedLoanChangeIndicators(model.LoanId);
        }