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

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -