增加菜单按照目标排序功能

This commit is contained in:
Argo-Lenovo 2016-12-09 12:51:41 +08:00
parent 4bdc39015a
commit f966aa2b9d
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}