Hi
I'm using ASP.NET Core.
I'm trying to follow the instruction for ASP.NET MVC Wrappers Data Binding (https://js.devexpress.com/Documentation/16_2/Guide/ASP.NET_MVC_Wrappers/Data_Binding/) and in ASP.NET Web API
the first method is failing because of the error
"HttpRequest does not contain a definition of CreateResponse"
so the Request.CreateResponse doesn;t exists
[HttpGet]
public HttpResponseMessage Get(DataSourceLoadOptions loadOptions) {
return Request.CreateResponse(DataSourceLoader.Load(_nwind.Orders, loadOptions));
}
How can I correct this problem?
Regards
Dimitris
It's difficult to say for sure without reviewing your project. For now, I can only suggest you ensure that the base class for your controller is ApiController. If the base class is correct, please send us a sample project that reproduces the issue so that we can research it on our side. I am looking forward to your response.
Hi
There is no ApiController in ASP.NET Core. It's been replaced with the Controller class.
Regards
Dimtiris