public ActionResult SalesMonthlyLocation()
        {
            SalesLogic logic = new SalesLogic();

            List <Sales_Monthly_Locaiton> salesMonthlyLocation = new List <Sales_Monthly_Locaiton>();

            salesMonthlyLocation = logic.getDetails_Sales_Monthly_Locaiton();

            return(View(salesMonthlyLocation));
        }
Example #2
0
        public TransactionController(IRepository <Product> _ProductRepo, IRepository <Batch> _BatchRepo,
                                     IRepository <Transaction> _TransactiontRepo, IRepository <Auction> _AuctionRepo,
                                     IRepository <ProductToBeAuctioned> _ProductToBeAuctionedRepo, IRepository <Loss> _LossRepo,
                                     IRepository <AuctionTransactionStatus> _AuctionTransactionStausRepo)
        {
            BatchRepo       = _BatchRepo;
            TransactionRepo = _TransactiontRepo;
            ProductRepo     = _ProductRepo;

            SalesLogic = new SalesLogic(_ProductRepo, BatchRepo, TransactionRepo, _AuctionRepo, _ProductToBeAuctionedRepo, _LossRepo, _AuctionTransactionStausRepo);
        }
        public ActionResult SalesMonthly()
        {
            SalesLogic logic = new SalesLogic();

            List <Sales_Monthly> salesMonthly = new List <Sales_Monthly>();

            salesMonthly = logic.getDetails_Sales_Monthly();


            return(View(salesMonthly));
        }
        public ActionResult RefundedMonthly()
        {
            SalesLogic logic = new SalesLogic();

            List <Sales_Monthly_Location_Associates> Sales_Monthly_Location_Associates = new List <Sales_Monthly_Location_Associates>();

            Sales_Monthly_Location_Associates = logic.getDetails_Refund_Monthly();


            return(View(Sales_Monthly_Location_Associates));
        }
 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;
 }
Example #6
0
        public AnalysisController(IRepository <Product> _ProductRepo, IRepository <Batch> _ProductInStoreRepo,
                                  IRepository <Transaction> _TransactiontRepo, IRepository <Auction> _AuctionRepo,
                                  IRepository <ProductToBeAuctioned> _ProductToBeAuctionedRepo, IRepository <Loss> _LossRepo,
                                  IRepository <AuctionTransactionStatus> _AuctionStatusTransactionRepo, ProfitLogic _ProfitLogic,
                                  SalesLogic _SalesLogic, ProductsLogic _ProductsLogic)
        {
            ProductRepo        = _ProductRepo;
            Auctionrepo        = _AuctionRepo;
            ProductInStoreRepo = _ProductInStoreRepo;
            TransactionRepo    = _TransactiontRepo;
            ToBeAuctionedRepo  = _ProductToBeAuctionedRepo;

            ProfitLogic   = _ProfitLogic;
            SalesLogic    = _SalesLogic;
            ProductsLogic = _ProductsLogic;
        }
 public ChartsController(IRepository <Product> _ProductRepo, IRepository <Transaction> _TransactionRepo, SalesLogic _SalesL, ProfitLogic _ProfitL, ChartLogic _ChartL)
 {
     ProductRepo     = _ProductRepo;
     TransactionRepo = _TransactionRepo;
     SalesLogic      = _SalesL;
     ProfitLogic     = _ProfitL;
     ChartLogic      = _ChartL;
 }