コード例 #1
0
        public JsonResult GetPatientLastDiagnosisAndAlergies(string patientId)
        {
            var alergies      = _diagnosisService.GetPatientAlergies(Convert.ToInt32(patientId));
            var lastDiagnosis = _diagnosisService.GetLastDiagnosisOfPatient(Convert.ToInt32(patientId), _userService.GetDoctorByUserId(Convert.ToInt32(Session["Userid"].ToString())).DoctorId);

            var data = new { alergies, lastDiagnosis };

            return(new JsonResult {
                Data = new { Status = "Success", data = data }, JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }