I have a simple table as follows mapped with Entity Framework. I am trying to return just a very basic call of IEnumerable(Of MyTableObject) however MVC API is just bombing out with error code 500. When I try to return a IEnumerable(Of String) and select just a single column it does the same.
I try to return this model with the following code.
' GET api/chatlog
Public Function GetValues() As IEnumerable(Of ChatLog)
Using mcEntity As New McEntities
Return mcEntity.ChatLogs.ToList()
End Using
End Function
Unfortunate for me with the return data. I get nothing?
Does MVC Web API not support passing objects from EF down the pipe or do I manually have to Serialize this into XML?
Fiddler throws "HTTP/1.1 500 Internal Server Error"