Beispiel #1
0
 public async Task <List <Blog> > Search(string searchString)
 {
     return(await _blogDal.GetAllAsync(i => i.Title.Contains(searchString) || i.Description.Contains(searchString) || i.ShortDescription.Contains(searchString), y => y.PostedTime));
 }
Beispiel #2
0
 public async Task <List <Blogg> > SearchAsync(string searchString)
 {
     return(await _blogDal.GetAllAsync(I => I.Title.Contains(searchString) || I.ShortDesc.Contains(searchString) || I.Description.Contains(searchString)));
 }
Beispiel #3
0
 public async Task <List <Blog> > SearchAsync(string searchString)
 {
     return(await _blogDal.GetAllAsync(x => x.Title.ToLower().Contains(searchString.ToLower()) || x.Description.ToLower().Contains(searchString.ToLower()) ||
                                       x.ShortDescription.ToLower().Contains(searchString.ToLower()), x => x.PostedTime));
 }