public static dtoExportConfigurationSetting GetDefaultSetting(StatisticsPageType pagetype, ConfigurationType configurationType, StatisticType statisticType)
        {
            dtoExportConfigurationSetting result = new dtoExportConfigurationSetting();

            result.PageType      = pagetype;
            result.ConfigType    = configurationType;
            result.StatisticType = statisticType;
            result.Fields        = ExportConfigurationSetting.GetDefaultDtoFields(pagetype);
            return(result);
        }
        public dtoExportConfigurationSetting(ExportConfigurationSetting setting)
        {
            ConfigType = setting.ConfigType;
            if (setting.Fields.Any() && setting.Fields.Where(f => f.Deleted == BaseStatusDeleted.None).Any())
            {
                Fields = setting.Fields.Where(f => f.Deleted == BaseStatusDeleted.None).Select(f => new dtoExportField(f)).ToList();
            }
            else
            {
                Fields = new List <dtoExportField>();
            }

            PageType       = setting.PageType;
            StatisticType  = setting.StatisticType;
            Id             = setting.Id;
            Path           = setting.Path;
            IdCommunity    = setting.IdCommunity;
            IdOrganization = setting.IdOrganization;
            IsEnabled      = setting.IsEnabled;
            ForAllPath     = setting.ForAllPath;
        }