public async Task <IActionResult> FindRepositories(string name) { ViewBag.Env = _environment.EnvironmentName; if (_client.GetValue(ApplicationConstants.FeatureToggle.PESQUISAR_REPOSITORIOS, false)) { ViewBag.Repositories = await _service.GetRepositories(name); ViewBag.PesquisarRepo = _client.GetValue(ApplicationConstants.FeatureToggle.PESQUISAR_REPOSITORIOS, false); } return(View("Index")); }
public async Task <ActionResult <object> > Get() { return(await _service.GetRepositories()); }