public InvestmentManagersController(IHttpClientFactory clientFactory, IConfiguration config, IMapper mapper, IInvestmentManagerRepository investmentManagerRepository) { _clientFactory = clientFactory; _config = config; _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); _investmentManagerRepository = investmentManagerRepository ?? throw new ArgumentNullException(nameof(investmentManagerRepository)); }
/// <summary> /// Inject repository (using Ninject) /// </summary> /// <param name="repository"></param> public HomeController(IInvestmentManagerRepository repository) { _repository = repository; }