0
votes

I am getting this error when attempting to call the

public object Lookups() {

  var divisions = _contextProvider.Context.Divisions;                      

  return divisions;
}

on the Breeze API controller.

The ObjectContent`1' type failed to serialize the response body for content type

What I'm I doing wrong ?

1

1 Answers

1
votes

Return an object, not an IQueryable.

public object Lookups() {

  var divisions = _contextProvider.Context.Divisions;                      

  return new { divisions };
}