OdataErrorInMvc5

Enter a topic name to show or a new topic name to create; then press Enter

Error Details

The declarations for Details, Edit and Delete are => int? id

This causes the ServiceClient Framework to generate an improper cast for a where clause on a query

Fix

The fix is to change the declaration to => int id = 0

and then change the line

 if (id == null)

to read instead

 if (id == 0)

Version: 1   Revised: 2013-12-12 16:47:43 Last Updated by: 208.114.148.38 Rename Show Links to Topic