public virtual void DeleteObjects(HttpContext context) { YZRequest request = new YZRequest(context); string parentou = request.GetString("parentou"); JObject post = request.GetPostData <JObject>(); BPMObjectNameCollection roles = post["roles"].ToObject <BPMObjectNameCollection>(); BPMObjectNameCollection members = post["members"].ToObject <BPMObjectNameCollection>(); using (BPMConnection cn = new BPMConnection()) { cn.WebOpen(); OU.DeleteRoleAndMembers(cn, parentou, roles, members); } }