Exemple #1
0
 public CustomerHomeController(IRepository <Auction> _Auction, IRepository <Product> _Product, IRepository <Store> _Store,
                               AuctionLogic _AuctionL)
 {
     AuctionRepo  = _Auction;
     AuctionLogic = _AuctionL;
     ProductRepo  = _Product;
     StoreRepo    = _Store;
 }
        public BatchesController(IRepository <Product> _ProductRepo, IRepository <Batch> _ProductInStoreRepo, IRepository <Transaction> _TransactiontRepo,
                                 IRepository <Auction> _AuctionRepo, IRepository <ProductToBeAuctioned> _ProductToBeAuctionedRepo, IRepository <Loss> _LossRepo,
                                 IRepository <AuctionTransactionStatus> _AuctionStatusTransactionRepo, AuctionLogic _AuctionL)
        {
            ProductRepo        = _ProductRepo;
            Auctionrepo        = _AuctionRepo;
            ProductInStoreRepo = _ProductInStoreRepo;
            TransactionRepo    = _TransactiontRepo;
            ToBeAuctionedRepo  = _ProductToBeAuctionedRepo;

            AuctionLogic = _AuctionL;
        }
 public ProductsController(IRepository <Product> _ProductRepo, IRepository <FoodWastePreventionSystem.Models.Batch> _ProductInStoreRepo,
                           IRepository <Transaction> _TransactiontRepo, IRepository <Auction> _AuctionRepo,
                           IRepository <ProductToBeAuctioned> _ProductToBeAuctionedRepo, IRepository <Loss> _LossRepo,
                           IRepository <AuctionTransactionStatus> _AuctionTransactionStausRepo,
                           AuctionLogic _AuctionL, ProductsLogic _ProductL, SalesLogic _SalesL, BackgroundTasks _cron)
 {
     Cron              = _cron;
     ProductRepo       = _ProductRepo;
     Auctionrepo       = _AuctionRepo;
     ToBeAuctionedRepo = _ProductToBeAuctionedRepo;
     ProductLogic      = _ProductL;
     AuctionLogic      = _AuctionL;
     SalesLogic        = _SalesL;
 }