public void Delete(int appInstallerId) { int id = ctx.GetInt("id"); AppInstaller installer = cdb.findById <AppInstaller>(appInstallerId); CacheObject objTheme = getThemeById(installer, id); if (objTheme == null) { } objTheme.delete(); rft.CallMethod(objTheme, "DeleteTheme"); echoRedirect("删除成功", to(Index, appInstallerId)); }