/// <summary>
        /// 06 - Valida um nome ou sobrenome de usuário
        /// </summary>
        /// <returns></returns>
        ///


        public JsonResult json07(string q, string limit, string sch)
        {
            try
            {
                VerificaSessao(sch);


                var rAux = BLLProcedures.stpEnderecoList(q);

                var r = (from a in rAux
                         select new
                {
                    value = a.id,
                    label = a.Endereco
                }).ToList();


                return(Json(r));
            }
            catch (Exception ex)
            {
                return(Json(new RetornoJsonPadrao(ex.Message, false, null)));
            }
        }
Beispiel #2
0
        public ActionResult PesquisaEndereco(string q)
        {
            RetornoAjax = BLLProcedures.stpEnderecoList(q).ToString();

            return(RetornoPadrao());
        }