public ProductControl(ProductModel product) { this.InitializeComponent(); productCommandService = new ProductCommandService(); productQueryService = new ProductQueryService(); AttachedProduct = product; mainGrid.DataContext = AttachedProduct; }
public ProductController( ICategoryQueryService categoryService, IWebHostEnvironment hostEnvironment, IProductCommandService commandService, IProductQueryService queryService) { _categoryService = categoryService; _hostEnvironment = hostEnvironment; _command = commandService; _query = queryService; _helpers = new Helpers(); }
public EditProductControl(ProductModel productModel = null) { this.InitializeComponent(); productCommandService = new ProductCommandService(); if (productModel == null) { Product = new ProductModel(); isNew = true; } else { Product = productModel; isNew = false; } DataContext = Product; }
public ProductController(IProductCommandService product, IProductQueryService productQueryService) { _product = product ?? throw new ArgumentNullException(nameof(product)); _productQueryService = productQueryService ?? throw new ArgumentNullException(nameof(productQueryService)); }
public ProductController(IProductCommandService commandService, IProductQueryService queryService) : base(commandService, queryService) { CommandService = commandService; }
public AddProductCommandHandler(IProductCommandService productCommandService) { this.productCommandService = productCommandService; }
public AddProductCommandHandler(IProductCommandService productCommandService, IMapper mapper) { this.productCommandService = productCommandService; this.mapper = mapper; }
public ProductController(IProductQueryService productQuery, IProductCommandService productCommand) { _productQuery = productQuery; _productCommand = productCommand; }
public ProductController(IProductCommandService command, IProductQueryService query) { _command = command; _query = query; }
public UpdateProductCommandHandler(IProductCommandService productCommandService) { this.productCommandService = productCommandService; }
public ProductController(IProductQueryService productQueryService, IProductCommandService productCommandService) { _productQueryService = productQueryService; _productCommandService = productCommandService; }
public ProductControl() { this.InitializeComponent(); productCommandService = new ProductCommandService(); productQueryService = new ProductQueryService(); }