コード例 #1
0
        public JsonResult SearchValueInHtmlFiles(string search_val, string patient_id)
        {
            JsonResult json_result = null;;;

            try
            {
                int parsed_patient_id;
                if (int.TryParse(patient_id, out parsed_patient_id))
                {
                    List <FileModel> patient_docs = DataAccess.GetPatientFiles(parsed_patient_id);
                    List <FileModel> result       = FileModel.Get_PopUp_File_List(search_val.ToLower(), patient_docs);
                    json_result = Json(result, JsonRequestBehavior.AllowGet);
                }
            }
            catch (Exception ex)
            {
                LogHelper.SaveLogInfo(string.Format("Exception: Error occured in FilesController controller SearchValueInHtmlFiles Action: \r\n  {0}", ex.Message), ex.StackTrace);
                json_result = new JsonResult();
            }

            return(json_result);
        }