public ProductApiController(IDocumentRepository _documentRepository, ITypeOfTaskRepository _typeOfTaskRepository, IFormatsNameRepository _formatsName, IProductRepository _productRepository, ITaskExecutorRepository _taskExecutorRepository, IArticleRepository _articleRepository, ICustomerSupplierRepository _customerSupplierRepository, IMenuProductRepository _menuProduct, ICostDetailRepository _costDetailRepository, ITaskCenterRepository _taskCenterRepository) { typeOfTaskRepository = _typeOfTaskRepository; documentRepository = _documentRepository; productRepository = _productRepository; taskExecutorRepository = _taskExecutorRepository; articleRepository = _articleRepository; customerSupplierRepository = _customerSupplierRepository; menu = _menuProduct; costDetailRepository = _costDetailRepository; taskCenterRepository = _taskCenterRepository; this.Disposables.Add(typeOfTaskRepository); this.Disposables.Add(documentRepository); this.Disposables.Add(productRepository); this.Disposables.Add(taskExecutorRepository); this.Disposables.Add(articleRepository); this.Disposables.Add(customerSupplierRepository); this.Disposables.Add(menu); this.Disposables.Add(costDetailRepository); this.Disposables.Add(taskCenterRepository); }
public ProductController(IProductRepository _productRepository, ITypeOfTaskRepository _typeOfTaskRepository, IMenuProductRepository _menuProduct, IProductTaskNameRepository _productTaskName, IFormatsNameRepository _formatsName, IDocumentRepository _documentRepository, IArticleRepository _articleRepository, ICostDetailRepository _costDetailRepository, ITaskExecutorRepository _taskExecuteRepository, ICustomerSupplierRepository _customerSupplierRepository, IWarehouseRepository _warehouseRepository ) { formatsRepository = _formatsName; prodTskNameRepository = _productTaskName; menu = _menuProduct; typeOfTaskRepository = _typeOfTaskRepository; productRepository = _productRepository; documentRepository = _documentRepository; articleRepository = _articleRepository; costDetailRepository = _costDetailRepository; taskExecuteRepository = _taskExecuteRepository; customerSupplierRepository = _customerSupplierRepository; warehouseRepository = _warehouseRepository; this.Disposables.Add(typeOfTaskRepository); this.Disposables.Add(documentRepository); this.Disposables.Add(productRepository); this.Disposables.Add(formatsRepository); this.Disposables.Add(articleRepository); this.Disposables.Add(prodTskNameRepository); this.Disposables.Add(costDetailRepository); this.Disposables.Add(taskExecuteRepository); this.Disposables.Add(customerSupplierRepository); this.Disposables.Add(menu); }
private void Init() { typeOfTaskRepository = new TypeOfTaskRepository(); documentRepository = new DocumentRepository(); productRepository = new ProductRepository(); taskExecutorRepository = new TaskExecutorRepository(); articleRepository = new ArticleRepository(); customerSupplierRepository = new CustomerSupplierRepository(); costDetailRepository = new CostDetailRepository(); taskCenterRepository = new TaskCenterRepository(); this.Disposables.Add(typeOfTaskRepository); this.Disposables.Add(documentRepository); this.Disposables.Add(productRepository); this.Disposables.Add(taskExecutorRepository); this.Disposables.Add(articleRepository); this.Disposables.Add(customerSupplierRepository); this.Disposables.Add(menu); this.Disposables.Add(costDetailRepository); this.Disposables.Add(taskCenterRepository); }