示例#1
0
文件: POI.cs 项目: zkenstein/CrowdCMS
        public SelectList GetAllPOICategoriesLiveAsSelectList()
        {
            var categories = POICategoriesRepository.GetAll().Where(c => c.POIC_IsLive).ToList();

            categories.Insert(0, new tbl_POICategories {
                POIC_Title = "Select category", POICategoryID = 0
            });
            return(new SelectList(categories, "POICategoryID", "POIC_Title"));
        }
示例#2
0
文件: POI.cs 项目: zkenstein/CrowdCMS
 public List <tbl_POICategories> GetAllPOICategoriesLive()
 {
     return(POICategoriesRepository.GetAll().Where(c => c.POIC_IsLive).ToList());
 }
示例#3
0
文件: POI.cs 项目: zkenstein/CrowdCMS
 public List <tbl_POICategories> GetAllPOICategories()
 {
     return(POICategoriesRepository.GetAll().ToList());
 }