From 8f32a12e4e932f2d4c3170bb2f853a449fc6fee8 Mon Sep 17 00:00:00 2001 From: Argo-Surface Date: Sat, 12 Jan 2019 15:54:05 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84=E4=BB=A3=E7=A0=81=EF=BC=9A?= =?UTF-8?q?=E6=9B=B4=E6=94=B9Count()=20>=200=20=E4=B8=BA=20Any()=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=80=A7=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/HttpHeaderOperation.cs | 2 +- Bootstrap.Admin/Views/Shared/SubNavItem.cshtml | 2 +- Bootstrap.Client/Views/Shared/Header.cshtml | 2 +- Bootstrap.Client/Views/Shared/SubNavItem.cshtml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Bootstrap.Admin/HttpHeaderOperation.cs b/Bootstrap.Admin/HttpHeaderOperation.cs index 4c15bb29..0f5181f7 100644 --- a/Bootstrap.Admin/HttpHeaderOperation.cs +++ b/Bootstrap.Admin/HttpHeaderOperation.cs @@ -21,7 +21,7 @@ namespace Bootstrap.Admin { if (operation.Parameters == null) operation.Parameters = new List(); - if (context.MethodInfo.GetCustomAttributes(typeof(AllowAnonymousAttribute), true).Count() == 0) + if (context.MethodInfo.GetCustomAttributes(typeof(AllowAnonymousAttribute), true).Length == 0) { operation.Parameters.Add(new NonBodyParameter() { diff --git a/Bootstrap.Admin/Views/Shared/SubNavItem.cshtml b/Bootstrap.Admin/Views/Shared/SubNavItem.cshtml index 8d6e6d20..8378ffd6 100644 --- a/Bootstrap.Admin/Views/Shared/SubNavItem.cshtml +++ b/Bootstrap.Admin/Views/Shared/SubNavItem.cshtml @@ -1,7 +1,7 @@ @model Bootstrap.Security.BootstrapMenu