public List <Video> GetByCategory(string CategoryOid) { var videos = FirebaseService.Get <Video>("/Videos"); if (videos != null) { return(videos .Where(item => item.CategoryOid == CategoryOid).ToList()); } return(new List <Video>()); }
public List <CategoryVideo> GetCategoryVideo() { return(FirebaseService.Get <CategoryVideo>("/CategoryVideos")); }
public List <CategoryFamousPeople> GetCategoryFamousPeople() { return(FirebaseService.Get <CategoryFamousPeople>("/CategoryFamousPeople")); }
public List <FamousPeople> GetByCategory(string CategoryOid) { var data = FirebaseService.Get <FamousPeople>("/FamousPeople"); return(data.Where(item => item.CategoryOids.Contains(CategoryOid)).ToList()); }