asp.net web api - Breeze API Controller - The 'ObjectContent`1' type failed to serialize the response body for content type -
i getting error when attempting call
public object lookups() { var divisions = _contextprovider.context.divisions; return divisions; }
on breeze api controller.
the objectcontent`1' type failed serialize response body content type
what i'm doing wrong ?
return object, not iqueryable.
public object lookups() { var divisions = _contextprovider.context.divisions; return new { divisions }; }
Comments
Post a Comment