public JsonResult CheckSendObjects(int appId, string partyids, string tagids, string userids) { CheckResult checkResult; var selectedDepartmentIds = string.IsNullOrEmpty(partyids) ? new List <int>() : partyids.Trim().Split('|').Select(x => int.Parse(x)).ToList(); var selectedTagIds = string.IsNullOrEmpty(tagids) ? new List <int>() : tagids.Trim().Split('|').Select(x => int.Parse(x)).ToList(); var selectedWeChatUserIDs = string.IsNullOrEmpty(userids) ? new List <string>() : userids.Trim().Split('|').ToList(); var isPass = _objServiceArticle.CheckMessagePushRule(appId, AccountManageID, selectedDepartmentIds, selectedTagIds, selectedWeChatUserIDs, out checkResult); return(Json(new { isPass = isPass, errorinfo = checkResult }, JsonRequestBehavior.AllowGet)); }