Beispiel #1
0
        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);
        }