Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 4
0
 public ProductController(IProductCommandService product, IProductQueryService productQueryService)
 {
     _product             = product ?? throw new ArgumentNullException(nameof(product));
     _productQueryService = productQueryService ?? throw new ArgumentNullException(nameof(productQueryService));
 }
Ejemplo n.º 5
0
 public ProductController(IProductCommandService commandService, IProductQueryService queryService) : base(commandService, queryService)
 {
     CommandService = commandService;
 }
 public AddProductCommandHandler(IProductCommandService productCommandService)
 {
     this.productCommandService = productCommandService;
 }
Ejemplo n.º 7
0
 public AddProductCommandHandler(IProductCommandService productCommandService, IMapper mapper)
 {
     this.productCommandService = productCommandService;
     this.mapper = mapper;
 }
Ejemplo n.º 8
0
 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;
 }
Ejemplo n.º 11
0
 public ProductController(IProductQueryService productQueryService, IProductCommandService productCommandService)
 {
     _productQueryService   = productQueryService;
     _productCommandService = productCommandService;
 }
Ejemplo n.º 12
0
 public ProductControl()
 {
     this.InitializeComponent();
     productCommandService = new ProductCommandService();
     productQueryService   = new ProductQueryService();
 }