Exemple #1
0
        protected ClaimDomainModel GetCustomerNameForClaim(ClaimEntity existingClaim)
        {
            var profile = ProfileService.GetProfileById(existingClaim.Policy.UserId);

            var claimModel = new ClaimDomainModel(existingClaim);

            claimModel.CustomerFirstName = profile.FirstName;
            claimModel.CustomerLastName  = profile.LastName;

            return(claimModel);
        }
Exemple #2
0
        protected List <ClaimDomainModel> GetCustomerNamesForClaims(List <ClaimEntity> openClaims)
        {
            var claimModels = new List <ClaimDomainModel>();

            foreach (var claimEntity in openClaims)
            {
                var claimModel = new ClaimDomainModel(claimEntity);

                var profile = ProfileService.GetProfileById(claimEntity.Policy.UserId);

                claimModel.CustomerFirstName = profile.FirstName;
                claimModel.CustomerLastName  = profile.LastName;

                claimModels.Add(claimModel);
            }

            return(claimModels);
        }