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); }
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); }
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); }