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
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)
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.