public ProductsController( IGetProductListQuery getProductListQuery, IGetProductDetailQuery getProductDetailQuery, ICreateProductCommand createProductCommand) { _getProductListQuery = getProductListQuery; _getProductDetailQuery = getProductDetailQuery; _createProductCommand = createProductCommand; }
public ProductController(IGetProductQuery getProductQuery, IGetRelatedProductQuery getRelatedProductQuery, IGetProductDetailQuery getProductDetailQuery, IGetRateQuery getRateQuery, IGetCommentQuery getCommentQuery, IGetCategoryQuery getCategoryQuery, ICreateCommentCommand createCommentCommand, ICreateRateCommand createRateCommand, IUpdateCommentCommand updateCommentCommand, IDeleteCommentCommand deleteCommentCommand) { this.getProductQuery = getProductQuery; this.getRelatedProductQuery = getRelatedProductQuery; this.getProductDetailQuery = getProductDetailQuery; this.getRateQuery = getRateQuery; this.getCommentQuery = getCommentQuery; this.getCategoryQuery = getCategoryQuery; this.createCommentCommand = createCommentCommand; this.createRateCommand = createRateCommand; this.updateCommentCommand = updateCommentCommand; this.deleteCommentCommand = deleteCommentCommand; }