public static string listar(string query)
        {
            var x = new muambbasqlEntities();

            var lst = x.stpEnderecoList(query).ToList();

            string retorno = "";

            foreach (var item in lst)
            {
                retorno = retorno + "<li>" + item.Endereco + "</li>";
            }

            return(retorno);
        }
Example #2
0
        public static ObjectResult <stpEnderecoList_Result> stpEnderecoList(string query)
        {
            var x = new muambbasqlEntities();

            var lst = x.stpEnderecoList(query);


            //var tbl = new Hashtable();
            ////string retorno = "";

            //foreach (var item in lst)
            //{
            //    tbl.Add(item.id, item.Endereco);

            //}

            return(lst);
        }