Ejemplo n.º 1
0
        public IBarelyView Index()
        {
            var v = new TagIndexView();

            v.Layout.Active = "tags";
            v.Layout.Title  = "Tag List - Earlz.Net";
            var c = BlogEntryData.All();
            var l = new List <string>(100);

            foreach (var i in c.FindAll())
            {
                if (i.Tags == null)
                {
                    continue;
                }
                foreach (var j in i.Tags)
                {
                    if (!l.Contains(j))
                    {
                        l.Add(j);
                    }
                }
            }
            l.Sort();
            v.Tags = l;
            return(v);
        }
Ejemplo n.º 2
0
 public IBarelyView Index()
 {
     var v=new TagIndexView();
     v.Layout.Active="tags";
     v.Layout.Title="Tag List - Earlz.Net";
     var c=BlogEntryData.All();
     var l=new List<string>(100);
     foreach(var i in c.FindAll()){
         if(i.Tags==null) continue;
         foreach(var j in i.Tags){
             if(!l.Contains(j)){
                 l.Add(j);
             }
         }
     }
     l.Sort();
     v.Tags=l;
     return v;
 }