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")); }
public List <tbl_POICategories> GetAllPOICategoriesLive() { return(POICategoriesRepository.GetAll().Where(c => c.POIC_IsLive).ToList()); }
public List <tbl_POICategories> GetAllPOICategories() { return(POICategoriesRepository.GetAll().ToList()); }