Ejemplo n.º 1
0
        /// <summary>
        /// 删除角色
        /// </summary>
        /// <returns></returns>
        public ActionResult DeleteRoleInfo()
        {
            string strId  = Request["strId"];
            var    strIds = strId.Split(',');
            var    ids    = new List <int>();

            foreach (var i in strIds)
            {
                ids.Add(Convert.ToInt32(i));
            }
            if (RoleInfoService.BatchDeleteEntities(ids))
            {
                return(Content("oK"));
            }
            return(Content("No"));
        }