Exemple #1
0
        public PolicyDTO GetPolicyByID(Guid id)
        {
            var policy = _policyRepository.GetByID(id);

            if (policy == null)
            {
                return(null);
            }

            return(new PolicyDTO
            {
                ID = policy.ID,
                AmountInsured = policy.AmountInsured,
                InceptionDate = policy.InceptionDate,
                InstallmentPayment = policy.InstallmentPayment,
                Email = policy.Email,
                ClientID = policy.ClientId
            });
        }