示例#1
0
        public JsonResult PatientsList()
        {
            try
            {
                var audittrail = new VAuditTrails()
                {
                    Action      = "Delete",
                    RecordTable = "Patients"
                };

                //Get patients
                var patients = _audittrail.Getautdittrail <VPatients>(audittrail);

                //Return result to jTable
                return(Json(new { Result = "OK", Records = patients, TotalRecordCount = patients.Count() }));
            }
            catch (Exception ex)
            {
                return(Json(new { Result = "ERROR", Message = ex.Message }));
            }
        }