Esempio n. 1
0
 public ProductOptionDto GetOption([FromUri] GetProductOptionQuery query)
 {
     return(_getProductOptionByIdQueryHandler.HandleQuery(query));
 }
 public ProductDto GetProduct([FromUri] GetProductByIdQuery query)
 {
     return(_getProductByIdQueryHandler.HandleQuery(query));
 }
 public ICollection <ProductDto> GetAll()
 {
     return(_getAllProductsQueryHandler.HandleQuery(new GetAllProductsQuery()));
 }
 public ProductDto SearchByName([FromUri] GetProductByNameQuery query)
 {
     return(_getProductByNameQueryHandler.HandleQuery(query));
 }
 public ICollection <ProductOptionDto> GetOptions([FromUri] GetProductOptionsForProductQuery forProductQuery)
 {
     return(_getproductOptionsQueryHandler.HandleQuery(forProductQuery));
 }