Beispiel #1
0
        public async Task <List <Drug> > Search(string text)
        {
            text = text.ToLower();
            var searchedDrugs = await _drugRepo.GetDrugWithPredicate(drug => drug.Name.ToLower().Contains(text) ||
                                                                     drug.Type.ToLower().Contains(text) ||
                                                                     drug.Description.ToLower().Contains(text));

            return(searchedDrugs);
        }