예제 #1
0
        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"));
        }
예제 #2
0
 public async Task <ActionResult <object> > Get()
 {
     return(await _service.GetRepositories());
 }