Пример #1
0
 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;
 }
Пример #2
0
 public CarrosselController(CarrosselApiClient api, IConfiguration configuration)
 {
     _api           = api;
     _configuration = configuration;
 }