コード例 #1
0
ファイル: PatientProfileView.cs プロジェクト: skgtrx/CMS
        /// <summary>
        /// Retrives all the info of patient about conservator stored in seperate table in database
        /// </summary>
        /// <returns>Patient Info as Patient Object</returns>
        public Patients GetPatientInfo()
        {
            PatientProfileData PatientInfo = new PatientProfileData(Id);
            var Patient = PatientInfo.GetPatientInfo();

            return(Patient);
        }
コード例 #2
0
ファイル: PatientProfileView.cs プロジェクト: skgtrx/CMS
        /// <summary>
        /// Retreaves all the info of Patient's profile based on the Patient's User Id
        /// </summary>
        /// <returns>User Object with Profile Info</returns>
        public Users GetPatientProfile()
        {
            PatientProfileData PatientProfile = new PatientProfileData(Id);
            var Patient = PatientProfile.GetPatientUser();

            Patient.Password = new EncryptPassword().Decrypt(Patient.Password);
            return(Patient);
        }