public virtual object GetGroupDefine(HttpContext context) { YZRequest request = new YZRequest(context); string groupName = request.GetString("GroupName"); using (BPMConnection cn = new BPMConnection()) { cn.WebOpen(); SecurityGroup group = SecurityGroup.FromName(cn, groupName); return(new { group = group, sids = this.GetGroupSIDs(cn, groupName) }); } }