public LoanDetailsModel OpenConciergeCommandEmbedded(string workQueueType, string action, Guid loanId, string prospectId) { var user = (UserAccount)HttpContext.Session[SessionHelper.UserData]; string title = action; if (action == "DefaultCommand") { if (workQueueType == "Prospects") { action = loanId == Guid.Empty ? "Manage Prospects" : "Manage Loan Application"; } else { action = "Manage Loan Application"; title = "Loan Application"; } } String additionalInformation = ""; if (action == "Manage Disclosures") { additionalInformation = GeneralSettingsServiceFacade.RetrieveeSigningVendorIntegrationEnabled() && LoanServiceFacade.RetrieveeSigningEnabledForLoan(loanId) ? "eSigning Room" : ""; } if (action == "Manage Loan") { title = "Loan Details"; } var titleInformation = ConciergeWorkQueueServiceFacade.ExecuteSPGetBorrowerData("GetBorrowerData", loanId, user.UserAccountId); LeadSource leadSource = LoanServiceFacade.RetrieveHearAboutUs(loanId); string hearAboutUs = string.Empty; if (leadSource != null) { if (leadSource.AffinityGroup == Contracts.Affiliate.AffinityGroup.PartnersProfiles) { if (leadSource.HBMId != null && leadSource.HBMId != Guid.Empty) { hearAboutUs = leadSource.LeadSourceId + " Realtor-HBM"; } else { hearAboutUs = leadSource.LeadSourceId + " Realtor"; } } else { hearAboutUs = leadSource.LeadSourceId + " " + leadSource.Description; } } LoanServiceFacade loanServiceFacade = new LoanServiceFacade(); var reDesclosureExists = loanServiceFacade.RetrieveLoanChangeIndicators(loanId, false); var loanSummaryObject = LoanServiceFacade.RetrieveLoanSummary(loanId, user.UserAccountId); bool showRedisclosureTab = reDesclosureExists != null && reDesclosureExists.ChangeOfCircumstanceList != null && reDesclosureExists.ChangeOfCircumstanceList.Count > 0; return(new LoanDetailsModel { Title = title, TitleInformation = titleInformation, AdditionalInformation = additionalInformation, HearAboutUs = hearAboutUs, LoanId = loanId, ShowRedisclosureTab = showRedisclosureTab, LoanSummaryObject = loanSummaryObject }); }