Example #1
0
        public AssignModel CallCheckingSecurityCodeMatch(string securityCode)
        {
            DoctorData  doctorData = new DoctorData();
            AssignDTO   assignDTO  = doctorData.CheckSecurityCodeMatch(securityCode);
            AssignModel assignModel;

            if (assignDTO.SecurityCodeMatch)
            {
                assignModel = new AssignModel
                {
                    patientModel = new PatientModel {
                        Id = assignDTO.patientDTO.Id
                    },
                    SecurityCodeMatch = assignDTO.SecurityCodeMatch
                };
            }
            else
            {
                assignModel = new AssignModel
                {
                    SecurityCodeMatch = assignDTO.SecurityCodeMatch
                };
            }
            return(assignModel);
        }