27 lines
1.1 KiB
C#
27 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using AICore.Context.Core;
|
|
using AICore.Context.Entry.Navigation;
|
|
using BS.Shared.DataContracts.Compact;
|
|
using BS.Shared.Extensions;
|
|
|
|
namespace AICore.Context.EntryMapper.Navigation
|
|
{
|
|
public class SupportConceptNavigationContextEntryMapper : BaseContextEntryMapper<CompactSupportConceptDC, SupportConceptNavigationContextEntry>
|
|
{
|
|
public override void MergeWithObject(CompactSupportConceptDC pObject, SupportConceptNavigationContextEntry pContext)
|
|
{
|
|
pContext.SupportConceptOid = pObject.SupportConceptOid;
|
|
pContext.AddressString = pObject.Customer.GetSingleAddressLine();
|
|
pContext.CostBearerDetailStrings = pObject.CostBearerDetailStrings?.ToArray();
|
|
pContext.CustomerName = pObject.Customer.GetFirstNameLastName();
|
|
pContext.CustomerAlias = pObject.Customer.CustomerAlias;
|
|
pContext.CustomerDateOfBirth = pObject.Customer.DateOfBirth;
|
|
pContext.CustomerPostcode = pObject.Customer.PostalCode;
|
|
pContext.CustomerReferenceNumbers = pObject.CustomerReferenceNumbers;
|
|
}
|
|
}
|
|
}
|