Exemple #1
0
        public static Data.Policy MapDtoToEntity(DTOs.Policy source)
        {
            var destination = new Policy
            {
                Id = source.Id,
                DefaultDeductible     = source.DefaultDeductible,
                DefaultOutOfPocketMax = source.DefaultOutOfPocketMax,
                Description           = source.Description,
                Name = source.Name
            };

            return(destination);
        }
Exemple #2
0
        public static DTOs.Policy MapEntityToDto(Policy source)
        {
            var destination = new DTOs.Policy
            {
                Id = source.Id,
                DefaultDeductible     = source.DefaultDeductible,
                DefaultOutOfPocketMax = source.DefaultOutOfPocketMax,
                Description           = source.Description,
                Name = source.Name,
                PolicyHolders_Count = source.PolicyHolders.Count
            };

            return(destination);
        }