public PullAdminController(IPullHdrRepository pulls, ICatalogItemRepository ci, IPullItemRepository pi)  // -----------------------------------------------------------
 {
     pitemRepo = pi;
     pullRepo  = pulls;
     ciRepo    = ci;
     cikvp     = ci.CatItemKVP;
     phlvm     = new PullHdrListViewModel(pulls, ci);
 } // eo PullAdminContnroller class --------------------------------------------------------
Exemple #2
0
        public PullHdrController(IPullHdrRepository repoService, Cart cartService, ICatalogItemRepository itemService) // ----------
        {
            repository = repoService;
            cart = cartService;
            ciRepo = itemService;
            PullOrders = repoService.PullOrders;
            phlvm = new PullHdrListViewModel(repoService, itemService);

        } // eo constructor with dependency injection ---------------------------------------------
 public PullHdrListViewModel(IPullHdrRepository repo, ICatalogItemRepository repo2) // -----
 {
     phRepo     = repo;
     ciRepo     = repo2;
     catItemKVP = repo2.CatItemKVP;
 } // eo constructor -----------------------------------------------------------------------