Beispiel #1
0
 public async Task <ActionResult <List <Video> > > SearchVideos(SearchVideoParam param)
 {
     return(await _catalogService.Search(param));
 }
Beispiel #2
0
        public async Task <List <Video> > Search(SearchVideoParam param)
        {
            var videos = await _catalogDb.Videos.Where(v => v.Name.Contains(param.SearchText)).ToListAsync();

            return(videos);
        }