删除字典表按照id排序
This commit is contained in:
parent
ca3f29cafb
commit
7f9b93ab0e
|
@ -42,9 +42,6 @@ namespace Bootstrap.Admin.Models
|
||||||
// 通过option.Sort属性判断对那列进行排序
|
// 通过option.Sort属性判断对那列进行排序
|
||||||
switch (Sort)
|
switch (Sort)
|
||||||
{
|
{
|
||||||
case "ID":
|
|
||||||
data = Order == "asc" ? data.OrderBy(t => t.ID) : data.OrderByDescending(t => t.ID);
|
|
||||||
break;
|
|
||||||
case "Category":
|
case "Category":
|
||||||
data = Order == "asc" ? data.OrderBy(t => t.Category) : data.OrderByDescending(t => t.Category);
|
data = Order == "asc" ? data.OrderBy(t => t.Category) : data.OrderByDescending(t => t.Category);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue