HI
Why the Grid read action (include javascript grid.dataSource.read() function use "api" url ???
ERROR : POST http://localhost:31466/api/AppM010/GetSomeList 415 (Unsupported Media Type)
View
.Read(read => read.Action("GetSomeList", "AppM010").Data("..."))
Javascript
grid.dataSource.read()
There have Controller/ApiController with the same class/method name and different namespace in application :
namespace App1.ApiControllers
{
[ApiController]
[ProducesAttribute("application/json"]
[Route("api/{controller}/{action}")]
public class AppM010Controller : BaseController
{
public AppM010Controller()
{
}
[HttpPost]
public IList<TSomeView> GetSomeList(...)
{
namespace App1.Controllers
{
public class AppM010Controller : Controller
{
public AppM010Controller()
{
}
public ActionResult GetSomeList([DataSourceRequest]DataSourceRequest request, ...)
{
*Don't ask me change the Controller/ApiController or method name.
Nobody knows there have the [ApiController] attribute for ApiController ??
I don't want any component action use the ApiController.
I think the component action got the wrong controller via action name only.
Not only the Grid, othere component is the same.
Fix this BUG as soon as possible, please.
Best regards
Chris