예제 #1
0
        public ViewResult AddTrend(TrendAnalysisTheme trendAnalysisTheme)
        {
            ConfigureVM configureVM = new ConfigureVM();
            TrendAnalysisThemeRepository trendRepository = new TrendAnalysisThemeRepository();

            configureVM.Organisations = new List <Organisation>()
            {
                null
            };
            configureVM.Organisations.AddRange(trendRepository.Organisations());
            configureVM.SubOrganisations = new List <SubOrganisation>()
            {
                null
            };
            configureVM.SubOrganisations.AddRange(trendRepository.SubOrganisations());
            configureVM.Applications = new List <Application>()
            {
                null
            };
            configureVM.Applications.AddRange(trendRepository.Applications());

            TrendAnalysisThemeRepositoryHelper trendRepositoryHelper = new TrendAnalysisThemeRepositoryHelper();

            configureVM.Themes = trendRepositoryHelper.TableToThemeEntity(trendRepository.GetThemes(trendAnalysisTheme.assignment_group_parent_parent, trendAnalysisTheme.assignment_group_parent, trendAnalysisTheme.configuration_item_application));

            return(View("Configure", configureVM));
        }