コード例 #1
0
        public AbstractDomainModel GetAll(Core.Enumerations.SearchCriteriaEnum searchCriteria)
        {
            searchDoctor = new DomainModel.Models.DoctorsSearch();
            switch (searchCriteria)
            {
            case Core.Enumerations.SearchCriteriaEnum.GET_COUNTRIES:
                searchDoctor.Countries = countryRepository.GetAll();
                break;

            case Core.Enumerations.SearchCriteriaEnum.GET_SPECIALTIES:
                searchDoctor.Specialties = specialtyRepository.GetAll();
                break;

            case Core.Enumerations.SearchCriteriaEnum.GET_DOCTORS:
                searchDoctor.Doctors = providerRepository.GetAllDoctors();
                break;

            case Core.Enumerations.SearchCriteriaEnum.GET_PHARMACISTS:
                searchDoctor.Pharmacists = providerRepository.GetAllPharmacists();
                break;

            case Core.Enumerations.SearchCriteriaEnum.GET_NURSE:
                searchDoctor.Nurses = providerRepository.GetAllNurses();
                break;

            case Core.Enumerations.SearchCriteriaEnum.GET_TREATMENTS:
                searchDoctor.Treatments = treatmentRepository.GetAll();
                break;

            default:
                break;
            }

            return(searchDoctor);
        }
コード例 #2
0
ファイル: HomeUOW.cs プロジェクト: hassanbaig/CodeNameJunk123
        public AbstractDomainModel GetAll(Core.Enumerations.SearchCriteriaEnum searchCriteria)
        {
            home = new DomainModel.Models.Home();
            switch (searchCriteria)
            {
            case Core.Enumerations.SearchCriteriaEnum.GET_REGISTRATION_YEARS:
                home.Years = homeRepository.GetAllYears();
                break;

            case Core.Enumerations.SearchCriteriaEnum.GET_CYLINDERS:
                home.Cylinders = homeRepository.GetCylinders();
                break;

            case Core.Enumerations.SearchCriteriaEnum.GET_STATES:
                home.States = homeRepository.GetAllStates();
                break;

            case Core.Enumerations.SearchCriteriaEnum.GET_QUESTIONNAIRE:
                home.Questionnaire = homeRepository.GetQuestionnaire();
                break;

            default:
                break;
            }
            return(home);
        }
コード例 #3
0
        public AbstractDomainModel GetAll(Core.Enumerations.SearchCriteriaEnum searchCriteria)
        {
            signup = new DomainModel.Models.Signup();
            switch (searchCriteria)
            {
            case Core.Enumerations.SearchCriteriaEnum.GET_ALL_SECURITY_QUESTIONS:
                signup.SecurityQuestions = userRepository.GetAllSecurityQuestions();
                break;

            default:
                break;
            }
            return(signup);
        }
コード例 #4
0
        public AbstractDomainModel GetAll(Core.Enumerations.SearchCriteriaEnum searchCriteria)
        {
            searchPractice = new DomainModel.Models.PracticesSearch();
            switch (searchCriteria)
            {
            case Core.Enumerations.SearchCriteriaEnum.GET_HOSPITALS:
                searchPractice.Hospitals = practiceRepository.GetAllHospitals();
                break;

            case Core.Enumerations.SearchCriteriaEnum.GET_LABS:
                searchPractice.Labs = practiceRepository.GetAllLabs();
                break;

            default:
                break;
            }

            return(searchPractice);
        }
コード例 #5
0
 public AbstractDomainModel GetAll(Core.Enumerations.SearchCriteriaEnum searchCriteria)
 {
     throw new NotImplementedException();
 }