From f966aa2b9ddf1b2721bbcf2be177316140ef4e18 Mon Sep 17 00:00:00 2001 From: Argo-Lenovo Date: Fri, 9 Dec 2016 12:51:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=8F=9C=E5=8D=95=E6=8C=89?= =?UTF-8?q?=E7=85=A7=E7=9B=AE=E6=A0=87=E6=8E=92=E5=BA=8F=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Models/QueryMenuOption.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Bootstrap.Admin/Models/QueryMenuOption.cs b/Bootstrap.Admin/Models/QueryMenuOption.cs index 685f4d90..2befd5e2 100644 --- a/Bootstrap.Admin/Models/QueryMenuOption.cs +++ b/Bootstrap.Admin/Models/QueryMenuOption.cs @@ -50,6 +50,9 @@ namespace Bootstrap.Admin.Models case "CategoryName": data = Order == "asc" ? data.OrderBy(t => t.CategoryName) : data.OrderByDescending(t => t.CategoryName); break; + case "Target": + data = Order == "asc" ? data.OrderBy(t => t.Target) : data.OrderByDescending(t => t.Target); + break; default: break; }