Ejemplo n.º 1
0
        public JsonResult ListAged(int age)
        {
            try
            {
                //Get patients
                var patients = _patient.Getpatients_byage(age);

                //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 }));
            }
        }