public virtual object Inform(HttpContext context) { YZRequest request = new YZRequest(context); int taskid = request.GetInt32("TaskID"); JObject jPost = request.GetPostData <JObject>(); string comments = (string)jPost["comments"]; BPMObjectNameCollection uids = jPost["uids"].ToObject <BPMObjectNameCollection>(); using (BPMConnection cn = new BPMConnection()) { cn.WebOpen(); UserCollection users = BPMTask.Inform(cn, taskid, uids, comments); return(new { UserNameList = YZStringHelper.GetUserShortNameListString(users) }); } }