//Add Data From Linked Tables for Display public void EditItemForDisplay(PolicyCarVendorGroupItemLanguage policyCarVendorGroupItemLanguage) { //Add LanguageName if (policyCarVendorGroupItemLanguage.LanguageCode != null) { LanguageRepository languageRepository = new LanguageRepository(); Language language = new Language(); language = languageRepository.GetLanguage(policyCarVendorGroupItemLanguage.LanguageCode); if (language != null) { policyCarVendorGroupItemLanguage.LanguageName = language.LanguageName; } } //Add PolicyGroupName PolicyCarVendorGroupItemRepository policyCarVendorGroupItemRepository = new PolicyCarVendorGroupItemRepository(); PolicyCarVendorGroupItem policyCarVendorGroupItem = new PolicyCarVendorGroupItem(); policyCarVendorGroupItem = policyCarVendorGroupItemRepository.GetPolicyCarVendorGroupItem(policyCarVendorGroupItemLanguage.PolicyCarVendorGroupItemId); if (policyCarVendorGroupItem != null) { policyCarVendorGroupItemRepository.EditItemForDisplay(policyCarVendorGroupItem); policyCarVendorGroupItemLanguage.PolicyGroupName = policyCarVendorGroupItem.PolicyGroupName; policyCarVendorGroupItemLanguage.PolicyGroupId = policyCarVendorGroupItem.PolicyGroupId; } }