Hello, i have a project and i try to implement a grid with datamanager. The problem is that the code runs correctly on the backend and on the front end but i get an error 500. When i run the bacend on debug mode everything runs ok and i dont see any error, but still returns error 500(internal server error) on the client side.
Backend(it is just mvc asp with added libraries, not syncfusion project):
public DataResult MdlActions(DataManager dm)
{
using (Entities db = new Entities())
{
IEnumerable data = db.mdlTable.AsQueryable();
DataOperations operation = new DataOperations();
int cn = data.AsQueryable().Count();
data = operation.Execute(data, dm);
DataResult dt = new DataResult();
dt.result = data.ToList<mdl>();
dt.count = cn;
return data.ToList<mdl>();
}
}
FrontEnd (electron app):
function drawGrid() {
debugger;
var dataManger = ej.DataManager({
url: 'http://localhost/api/Mdl/',
adaptor: new ej.UrlAdaptor()
});
var query = ej.Query().take(3);
var execute = dataManger.executeQuery(query)
.done(function (e) {
debugger;
//this is just to check if succesfull.
});