Skip to content
Loading
Date Retrieving Problem  
Following is the code of my Action Method:
  1. public JsonResult RetrieveEmployeeRecordByID(string id)  
  2. {  
  3. var sa = new JsonSerializerSettings();  
  4. var empRecord = from rec in dbContext.EmployeeGeneralDetails  
  5. where rec.EmpCode == id  
  6. select rec;  
  7. return Json(empRecord, sa);  
  8. }  

5 Replies

Know the answer? Post it — somebody with the same question will find it here.