Beispiel #1
0
        public void GetAll()
        {
            var productRep = new ProductModificationsRepository(new YapartStoreContext());

            var result = productRep.GetAll().ToList();
            var aa     = 0;
        }
Beispiel #2
0
 public InventoriesController(InventoriesRepository inventoriesRepository, InventoryInputsRepository inventoryInputsRepository,
                              ProductsRepository productsRepository, InventoryOutputsRepository inventoryOutputsRepository,
                              ProductModificationsRepository productModificationsRepository, UnitsRepository unitsRepository)
 {
     _inventoriesRepository          = inventoriesRepository;
     _inventoryInputsRepository      = inventoryInputsRepository;
     _productsRepository             = productsRepository;
     _inventoryOutputsRepository     = inventoryOutputsRepository;
     _productModificationsRepository = productModificationsRepository;
     _unitsRepository = unitsRepository;
 }
 public ProductsController(ProductsRepository productsRepository,
                           InventoriesRepository inventoriesRepository,
                           SuppliersRepository suppliersRepository,
                           ProductTypesRepository productTypesRepository,
                           UnitsRepository unitsRepository,
                           InventoryInputsRepository inventoryInputsRepository,
                           ProductModificationsRepository productModificationsRepository)
 {
     _productsRepository             = productsRepository;
     _inventoriesRepository          = inventoriesRepository;
     _productTypesRepository         = productTypesRepository;
     _suppliersRepository            = suppliersRepository;
     _unitsRepository                = unitsRepository;
     _inventoryInputsRepository      = inventoryInputsRepository;
     _productModificationsRepository = productModificationsRepository;
 }