コード例 #1
0
        public ActionResult ProcessSetAction()
        {
            int    roleId    = int.Parse(Request["roleId"]);
            string actionIds = Request["actionIds"];

            string[]   idArray = actionIds.Split(',');
            List <int> IdList  = new List <int>();

            foreach (var id in idArray)
            {
                IdList.Add(int.Parse(id));
            }
            roleInfoService.SetAction(roleId, IdList);
            return(Content("ok"));
        }