Exemplo n.º 1
0
        public async Task <String> RegionsCSV()
        {
            VmList vml     = new VmList(configuration);
            var    regions = await vml.GetRegions();

            StringBuilder s = new StringBuilder();

            foreach (var item in regions)
            {
                s.Append(item.Value <string>("slug"));
                s.Append(";");
            }
            return(s.ToString());
        }
Exemplo n.º 2
0
        public async Task <dynamic> Get()
        {
            VmList vml = new VmList(configuration);

            return(await vml.GetRegions());
        }
Exemplo n.º 3
0
        public async Task <JArray> Regions()
        {
            VmList vml = new VmList(configuration);

            return(await vml.GetRegions());
        }