How to set the codes below to catch no records?
Codes(C#):
var ObjData = new iDataContext(); works fine
var Obj = ObjData.spBooking_SendEmail_().Single(); <---get error below...
Error message:
"Invalid Operation Exception was catch --- Sequence contains no elements"
I need to return one or more records, if not records are found the application
presents message "No record found" message
Go to the complete details ...