Exemplo n.º 1
0
        public dynamic Telefone_Excluir(string IdTelefone)
        {
            TelefoneBE_SQL Sql = new TelefoneBE_SQL();

            Sql.Delete(IdTelefone);

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

            jsonResult.MaxJsonLength = int.MaxValue;

            return(jsonResult);
        }
Exemplo n.º 2
0
        public dynamic Telefone_InsertUpdate(TelefoneBE objList)
        {
            TelefoneBE_SQL Sql = new TelefoneBE_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 Telefone_SelectList(string IdContato)
        {
            TelefoneBE_SQL    Sql     = new TelefoneBE_SQL();
            List <TelefoneBE> objList = new List <TelefoneBE>();

            objList = Sql.SelectList(IdContato);

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

            jsonResult.MaxJsonLength = int.MaxValue;

            return(jsonResult);
        }