public JsonResult GetMunicipio(int id) { CPAWS.CPAWS fx = new CPAWS.CPAWS(); var fxx = fx.WsExecuteMunicipios(id); string json = JsonConvert.SerializeObject(fxx, Formatting.Indented); return(Json(json, JsonRequestBehavior.AllowGet)); //return Json(fxx.ToString()); }
public JsonResult GetColonia(int id_estado, int id_muni) { CPAWS.CPAWS fx = new CPAWS.CPAWS(); var fxx = fx.WsExecuteColonias(id_estado, id_muni); string json = JsonConvert.SerializeObject(fxx, Formatting.Indented); return(Json(json, JsonRequestBehavior.AllowGet)); //return Json(fxx.ToString()); }
public JsonResult GetProductos() { CPAWS.CPAWS fx = new CPAWS.CPAWS(); var fxx = fx.WsExecuteProductos(); string json = JsonConvert.SerializeObject(fxx); return(Json(json, JsonRequestBehavior.AllowGet)); //return Json(fxx.ToString()); }
public JsonResult GetCliente() { CPAWS.CPAWS fx = new CPAWS.CPAWS(); var fxx = fx.WsGruposClientes(1); string json = JsonConvert.SerializeObject(fxx, Formatting.Indented); return(Json(json, JsonRequestBehavior.AllowGet)); //return Json(fxx.ToString()); }