Esempio n. 1
0
        public virtual BPMObjectNameCollection AddGroupMembers(HttpContext context)
        {
            YZRequest request            = new YZRequest(context);
            int       groupid            = request.GetInt32("groupid");
            string    role               = request.GetString("role");
            JArray    jPost              = request.GetPostData <JArray>();
            BPMObjectNameCollection uids = jPost.ToObject <BPMObjectNameCollection>();

            using (IYZDbProvider provider = YZDbProviderManager.DefaultProvider)
            {
                using (IDbConnection cn = provider.OpenConnection())
                {
                    return(GroupManager.AddGroupMembers(provider, cn, groupid, uids, role));
                }
            }
        }