示例#1
0
        public virtual void ChangeMemberRole(HttpContext context)
        {
            YZRequest request = new YZRequest(context);
            int       groupid = request.GetInt32("groupid");
            string    uid     = request.GetString("uid");
            string    newrole = request.GetString("newrole");

            using (IYZDbProvider provider = YZDbProviderManager.DefaultProvider)
            {
                using (IDbConnection cn = provider.OpenConnection())
                {
                    GroupManager.ChangeMemberRole(provider, cn, groupid, uid, newrole);
                }
            }
        }