public HomeController(IOptions <SettingsModel> app, IConfiguration configuration, NoticiasApiClient api, SobreApiClient apiSobre, ConfigApiClient apiConfiguracao, CarrosselApiClient apiCarrossel, PoloApiClient apiPolo) { appSettings = app; _configuration = configuration; _api = api; _apiSobre = apiSobre; _apiCarrossel = apiCarrossel; _apiPolo = apiPolo; _apiConfiguracao = apiConfiguracao; ApplicationSettings.WebApiUrl = appSettings.Value.WebApiBaseUrl; }
public CarrosselController(CarrosselApiClient api, IConfiguration configuration) { _api = api; _configuration = configuration; }