public ProductsController(IGetProductsQuery IGetProductsQuery, IGetProductByIDQuery IGetProductByIDQuery, ICreateProductCommand ICreateProductCommand, IUpdateProductCommand IUpdateProductCommand, IDeleteProductCommand IDeleteProductCommand) { _IGetProductsQuery = IGetProductsQuery; _IGetProductByIDQuery = IGetProductByIDQuery; _ICreateProductCommand = ICreateProductCommand; _IUpdateProductCommand = IUpdateProductCommand; _IDeleteProductCommand = IDeleteProductCommand; }
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; }
public ProductsController(IGetProductsQuery query) { _query = query; }
public IActionResult Get([FromBody] ProductSearch search, [FromServices] IGetProductsQuery query) { return(Ok(executor.ExecuteQuery(query, search))); }
public ProductsController(IMapper mapper, IGetProductsQuery getProductsQuery) { _mapper = mapper; _getProductsQuery = getProductsQuery; }
public ProjectsController(IGetProductsQuery getProductsQuery, IMapper mapper) { _mapper = mapper; _getProductsQuery = getProductsQuery; }