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); }
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); }