Webget に 2 つの datetime パラメータを渡そうとしましたが、正しく動作させる方法がわかりません。以下にコードを示します。
[WebGet]
public IQueryable<TestTable> GetCallersByDate(string beginDate, string eindDate)
{
testCDREntities context = this.CurrentDataSource;
DateTime startDt = DateTime.Parse(beginDate);
DateTime endDt = DateTime.Parse(eindDate);
var selectedOrders = from table in context.TestTables
where table.Created >= startDt && table.Created <= endDt
select table;
return selectedOrders;
}
URL :
http://localhost:50088/WebService.svc/GetCallersByDate?beginDate=2016/03/23T20:22:30:14&eindDate=2016/03/2T20:13:11:03
誰かが私を助けてくれることを願っていますか?