【发布时间】:2014-06-16 18:58:51
【问题描述】:
我有一个返回 IQueryable 的 web api 我想按 asc 顺序对字符串列表进行排序
我的 MyAPIController 代码
[Queryable]
public IQueryable<string> Get()
{
//result
return result.AsQueryable();
}
我尝试使用
但它给出了 HTTP/1.1 400 Bad Request 错误。 什么是正确的排序语法?
【问题讨论】:
标签: asp.net-mvc c#-4.0 odata asp.net-web-api