Example #1
0
 //private object GetSectionItems(AppSectionType sectionType)
 //{
 //    return sectionItems
 //        .Where(sectionItem => sectionItem.Type == sectionType)
 //        .OrderBy(sectionItem => sectionItem.Title)
 //        .Select(sectionItem => new
 //        {
 //            id = Guid.NewGuid(),
 //            name = sectionItem.Title,
 //            //path = sectionItem.GetModulePath(),
 //            sortOrder = sectionItem.SortOrder,
 //            tileTypeFullName = sectionItem.TileTypeFullName
 //        }).ToArray();
 //}
 private List<AppSectionItemAttribute> GetSectionItems(AppSectionType sectionType)
 {
     return sectionItems
         .Where(item => item.Type == sectionType)
         .OrderBy(item => item.Title)
         .ToList();
 }
        //public string TileTypeFullName { get; set; }
        //public int SortOrder { get; set; }

        public AppSectionItemAttribute(string title, AppSectionType sectionType, Type typeFullName, string description = null)
        {
            Title = title;
            Type = sectionType;
            TypeFullName = typeFullName;
            Description = description;
        }