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