public JsonResult Get(int Id) { try { //Get patients var patient = _patient.Getpatients(Id); //Return result to jTable return(Json(new { Result = "OK", Records = patient, TotalRecordCount = patient.Count() })); } catch (Exception ex) { return(Json(new { Result = "ERROR", Message = ex.Message })); } }