public static IEnumerable <Tuple <string, object, IDictionary <string, object>, string> > GetInlineModules(this HtmlHelper helper, string type) { object res; if (!helper.GetStorage().TryGetValue(_webexInternalInlineModuleInstances, out res)) { res = new InlineModuleModel[] { }; } return(from k in res as IEnumerable <InlineModuleModel> where k.type == type select new Tuple <string, object, IDictionary <string, object>, string>(k.view, k.model, k.args, k.instanceId)); }
public static int GetInlineModulesCount(this HtmlHelper helper) { object res; if (!helper.GetStorage().TryGetValue(_webexInternalInlineModuleInstances, out res)) { res = new InlineModuleModel[] { }; } return((res as IEnumerable <InlineModuleModel>).Count()); }