public JsonResult OrderPeopleInfo_Deletes(string str) { BLL.SubscriberBLL _SubscriberBLL = new SubscriberBLL(); retValue ret = new retValue(); string content = string.Empty; DataTable dt = str.ToTable(); string ids = ""; foreach (DataRow item in dt.Rows) { if (!string.IsNullOrEmpty(item["ID"]._ToStrTrim())) { ids += item["ID"]._ToStrTrim() + ","; } } ret = _SubscriberBLL.DeleteByPK(ids.Remove(ids.Length - 1)); content = ret.toJson(); var js = JsonConvert.SerializeObject(ret); return(Json(js, JsonRequestBehavior.AllowGet)); }