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 --------------------------------------------------------
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 -----------------------------------------------------------------------