public async Task <ActionResult <Policy> > DeletePolicy(int policyId)
        {
            var policy = await _policyRepository.FindPolicy(policyId);

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

            await _policyRepository.DeletePolicy(policy);

            return(policy);
        }