//public static internal static bool IsImage(string hn, CacheConnection con) { var dt = InterSystemsDa.DtBindDataCommand(QueryString.GetPatientImage(hn), con); var flag = Helper.CheckPatientImage(dt); return(flag); }
public static Tuple <bool, PatientImage> GetPatientImage(string hn, CacheConnection con) { try { var ptImg = new PatientImage(); var dt = InterSystemsDa.DtBindDataCommand(QueryString.GetPatientImage(hn), con); var isImage = Helper.CheckPatientImage(dt); //ptImg.Image = isImage ? Helper.DataTableToBase64(dt, 500, 500) : ""; return(new Tuple <bool, PatientImage>(isImage, ptImg)); } catch (Exception) { return(new Tuple <bool, PatientImage>(false, new PatientImage())); } }