public async Task <ProductDto> GetProductDetails(Guid ownerId, Guid productId) { GetProductDetails operation = new GetProductDetails(_authorityContext, ownerId, productId); Product product = await operation.Do(); return(product.ToDto()); }
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); }