Example #1
0
        public async Task <List <string> > BaseGetTownshipList()
        {
            var           DB   = new DBCrudDapper(ConfigurationManager.ConnectionStrings["DefaultConnectionString"].ConnectionString);
            List <String> list = new List <String>();

            foreach (var obszar in await DB.GetArea())
            {
                list.Add(obszar.Miejscowosc);
            }
            return(list);
        }
Example #2
0
        public async Task <string> BaseGetCity()
        {
            var DB   = new DBCrudDapper(ConfigurationManager.ConnectionStrings["DefaultConnectionString"].ConnectionString);
            var text = new StringBuilder();

            foreach (var obszar in await DB.GetArea())
            {
                text.AppendLine(obszar.Miasto);
            }
            return(text.ToString());
        }