コード例 #1
0
 public ProductsController(IGetProductsQuery IGetProductsQuery,
                           IGetProductByIDQuery IGetProductByIDQuery,
                           ICreateProductCommand ICreateProductCommand,
                           IUpdateProductCommand IUpdateProductCommand,
                           IDeleteProductCommand IDeleteProductCommand)
 {
     _IGetProductsQuery     = IGetProductsQuery;
     _IGetProductByIDQuery  = IGetProductByIDQuery;
     _ICreateProductCommand = ICreateProductCommand;
     _IUpdateProductCommand = IUpdateProductCommand;
     _IDeleteProductCommand = IDeleteProductCommand;
 }
コード例 #2
0
 public ProductsController(
     UseCaseExecutor executor,
     IGetProductsQuery query,
     IGetProductsJsonQuery jsonQuery,
     IGetCategoriesQuery categories,
     IGetManufacturersQuery manufacturers,
     IGetSuppliersQuery suppliers)
 {
     _executor      = executor;
     _query         = query;
     _jsonQuery     = jsonQuery;
     _categories    = categories;
     _manufacturers = manufacturers;
     _suppliers     = suppliers;
 }
コード例 #3
0
 public ProductsController(IGetProductsQuery query)
 {
     _query = query;
 }
コード例 #4
0
 public IActionResult Get([FromBody] ProductSearch search,
                          [FromServices] IGetProductsQuery query)
 {
     return(Ok(executor.ExecuteQuery(query, search)));
 }
コード例 #5
0
 public ProductsController(IMapper mapper, IGetProductsQuery getProductsQuery)
 {
     _mapper           = mapper;
     _getProductsQuery = getProductsQuery;
 }
コード例 #6
0
 public ProjectsController(IGetProductsQuery getProductsQuery, IMapper mapper)
 {
     _mapper           = mapper;
     _getProductsQuery = getProductsQuery;
 }