public virtual JsonResult VisualizationFilterCountries(VisualizationReportModel model)
        {
            _filterBusinesslogic = new VisualizationBusinessLogic();
            model.Countries      = _filterBusinesslogic.FilterCountries(ClientForGenericReports
                                                                        .GetCountriesFilter(IDBContext.Current.CurrentLanguage, model.SelectedCountryDepartments));

            return(new JsonResult()
            {
                Data = model.Countries
            });
        }
        VisualizationReportModel CreateModel(VisualizationFilterModel filterModel)
        {
            VisualizationReportModel result = new VisualizationReportModel();
            string language = IDBContext.Current.CurrentLanguage;

            _filterBusinesslogic = new VisualizationBusinessLogic();

            result.CountryDepartments =
                _filterBusinesslogic.FilterCountryDepartments(
                    ClientForGenericReports.GetCountryDepartments(language));

            result.Countries = _filterBusinesslogic.FilterCountries(
                ClientForGenericReports.GetCountries(language));

            result.PublicationStatus = _filterBusinesslogic.FilterPublicationsStatus(
                ClientForGenericReports.GetPublicationStatus(language));

            result.ReportTypes = _filterBusinesslogic.FilterReportTypes(
                ClientForGenericReports.GetReportTypes(language));

            LoadSectorsAndDivisions(result);

            return(result);
        }