using System; using System.Linq; using AICore.Context.Entry.Navigation; using BS.Shared.DataContracts.Compact; using BS.Shared.Extensions; namespace AICore.Context.EntryMapper.Navigation { internal class CustomerNavigationContextEntryMapper : BaseContextEntryMapper { public override void MergeWithObject(CompactCustomerDC pObject, CustomerNavigationContextEntry pContext) { pContext.AddressString = pObject.GetSingleAddressLine() ?? "null"; pContext.CustomerAlias = pObject.CustomerAlias; pContext.CustomerOid = pObject.Oid.Value; pContext.DateOfBirth = pObject.DateOfBirth; pContext.FullName = pObject.GetLastNameFirstName(); pContext.Teams = pObject.Teams; pContext.Bezugspersonen = pObject.MainAttendant; pContext.CostBearerReferenceNumbers = pObject.CostBearerReferenceNumbers; } } }