Exemplo n.º 1
0
        public dynamic Contato_Excluir(string IdContato)
        {
            ContatoBE_SQL Sql = new ContatoBE_SQL();

            Sql.Delete(IdContato);

            JsonResult jsonResult = Json(new { IdContato }, JsonRequestBehavior.AllowGet);

            jsonResult.MaxJsonLength = int.MaxValue;

            return(jsonResult);
        }
Exemplo n.º 2
0
        public dynamic Contato_InsertUpdate(ContatoBE objList)
        {
            ContatoBE_SQL Sql = new ContatoBE_SQL();

            objList = Sql.Insert_Update(objList);

            JsonResult jsonResult = Json(new { objList }, JsonRequestBehavior.AllowGet);

            jsonResult.MaxJsonLength = int.MaxValue;

            return(jsonResult);
        }
Exemplo n.º 3
0
        public dynamic Contato_SelectList()
        {
            ContatoBE_SQL    Sql     = new ContatoBE_SQL();
            List <ContatoBE> objList = new List <ContatoBE>();

            objList = Sql.SelectList();

            JsonResult jsonResult = Json(new { objList }, JsonRequestBehavior.AllowGet);

            jsonResult.MaxJsonLength = int.MaxValue;

            return(jsonResult);
        }