Пример #1
0
        public ActionResult DeleteRoles(string[] ids)
        {
            if (ids.Length <= 0)
            {
                return(Json(new { code = 999, msg = "参数有误" }));
            }
            SystemRoleService service = new SystemRoleService();

            object[] obj   = new object[ids.Length];
            string   parms = SqlParameterHelper.GetParameters(ids, ref obj);
            string   sql   = $"delete from SystemRole where id in({parms})";
            int      n     = service.ExcuteSqlParm(sql, obj);

            return(Json(new { code = 0, msg = "success" }));
        }