Exemplo n.º 1
0
 public ProductController(IProductService productService, IProductLocationService productLocationService)
 {
     _productService = productService
                       ?? throw new ArgumentNullException(nameof(productService));
     _productLocationService = productLocationService
                               ?? throw new ArgumentNullException(nameof(productLocationService));
 }
Exemplo n.º 2
0
        public ucNewProduct()
        {
            InitializeComponent();
            InitEvents();

            PopulateCombo();
            LoadMeasurementCmb();

            _pruduct  = new ProductService();
            _prodLoc  = new ProductLocationService();
            _supplier = new SupplierService();
            _logger   = new ErrorLogService();

            lblRemoveimg.Visible = false;

            SetUpDefaults();
        }