Ejemplo n.º 1
0
        public ICollection <PolicyDto> GetByClientId(Guid clientId)
        {
            try
            {
                var policies = _repo.GetByClientId(clientId);

                return(_mapper.Map <ICollection <PolicyDto> >(policies));
            }
            catch (Exception e)
            {
                throw new ApiServerException("Unexpected error", e);
            }
        }