public async Task <IList <CatalogViewModel> > Get()
        {
            IList <CatalogViewModel> result;

            try
            {
                result = await Task.FromResult(statusRepository.Get().Select(e => ModelFormatter.FormatEnvironmentCatalogModel(e)).ToList());
            }
            catch
            {
                result = new List <CatalogViewModel>();
            }
            return(result);
        }
Exemple #2
0
 public async Task <Environment> Get(string featureName, string environmentName)
 {
     return(await environmentRepository.Get(featureName, environmentName));
 }
 public List <Infra.Entidades.Environment> ConsultAllEnvironments()
 {
     return(_context.Get().ToList());
 }