//private Cart cart; //Constructor depedency injection public ClientController(IProductRepository repository, ICartRepository cartRepository, UserManager <ApplicationUser> userManager, IWebApiFetch webApiFetch, IWalletRepository walletRepository, IAskRepository askRepository) { _repository = repository; _cartRepository = cartRepository; _userManager = userManager; _webApiFetch = webApiFetch; _walletRepository = walletRepository; _askRepository = askRepository; }
//Depedency injection public HomeController(IWebApiFetch webApiFetch) { _webApiFetch = webApiFetch; }
public HomeController(IWebApiFetch webApiFetch, IDrawRepository drawRepository) { _webApiFetch = webApiFetch; _drawRepository = drawRepository; }