private IEnumerable <BannerVariable> QueryTemplateVariableOptions(TemplateBannerSetting banner) { var templateVariablesSettings = this.QueryTemplateVariablesSettings(banner); var variableSettings = this.QueryAllVariableSettings(templateVariablesSettings); var variables = this.QueryBannerVariables(variableSettings); return(variables); }
private IEnumerable <TemplateVariableSetting> QueryTemplateVariablesSettings(TemplateBannerSetting banner) { return(banner.TemplateVariables.LeftOuterJoin(banner.BannerVariables, v => v.VarName, t => t.VarName, t => new VariableOption() { VarName = t.VarName, ResxName = String.Empty }, (t, v) => new TemplateVariableSetting { VarName = t.VarName, VarType = t.VarType, ResxName = v.ResxName })); }