public static IEnumerable<GlossaryTermItem> GetRelatedTermsInfo(GlossaryPageItem ObjGlossaryArt, string Termletter) { IEnumerable<GlossaryTermItem> AllRelatedterms = ObjGlossaryArt.InnerItem.GetChildren() .Where(t => t.TemplateID.ToString() == GlossaryTermItem.TemplateId.ToString()) .Select(x => new GlossaryTermItem(x)) .Where(x => x.GlossaryTermTitle.Text.Substring(0, 1).ToUpper() == Termletter); return AllRelatedterms; }
public static IEnumerable <GlossaryTermItem> GetRelatedTermsInfo(GlossaryPageItem ObjGlossaryArt, string Termletter) { IEnumerable <GlossaryTermItem> AllRelatedterms = ObjGlossaryArt.InnerItem.GetChildren() .Where(t => t.TemplateID.ToString() == GlossaryTermItem.TemplateId.ToString()) .Select(x => new GlossaryTermItem(x)) .Where(x => x.GlossaryTermTitle.Text.Substring(0, 1).ToUpper() == Termletter); return(AllRelatedterms); }