Ejemplo n.º 1
0
        private static HraSoaModel ToMemberProviders(HraSoaModel hraSoa, IEnumerable <MemberProviderModel> assignedProviders)
        {
            hraSoa.MemberProvider = new MemberProviderModel();
            var assignedProviderList = assignedProviders.ToList();

            if (assignedProviderList.Any() == false)
            {
                return(hraSoa);
            }

            // -- EBM has duplicated records with same info and the most recent record is the one
            hraSoa.MemberProvider = assignedProviderList.OrderByDescending(_ => _.AssignedProviderId).FirstOrDefault();
            return(hraSoa);
        }
Ejemplo n.º 2
0
 private static HraSoaModel ToContractMap(HraSoaModel hraSoa, IEnumerable <ProviderContractMap> contracMaps)
 {
     hraSoa.ContractMap = contracMaps.FirstOrDefault();
     return(hraSoa);
 }