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); }
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); }
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); }
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); }
public AbstractDomainModel GetAll(Core.Enumerations.SearchCriteriaEnum searchCriteria) { throw new NotImplementedException(); }