コード例 #1
0
        public async Task <ProductDto> GetProductDetails(Guid ownerId, Guid productId)
        {
            GetProductDetails operation = new GetProductDetails(_authorityContext, ownerId, productId);
            Product           product   = await operation.Do();

            return(product.ToDto());
        }
コード例 #2
0
        public async Task <IEnumerable <Policy> > GetPolicies(Guid userId, Guid productId)
        {
            GetProductDetails operation = new GetProductDetails(_authorityContext, userId, productId);
            Product           product   = await operation.Do();

            return(product.Policies);
        }