//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;
        }
Exemplo n.º 2
0
 //Depedency injection
 public HomeController(IWebApiFetch webApiFetch)
 {
     _webApiFetch = webApiFetch;
 }
Exemplo n.º 3
0
 public HomeController(IWebApiFetch webApiFetch, IDrawRepository drawRepository)
 {
     _webApiFetch    = webApiFetch;
     _drawRepository = drawRepository;
 }