Beispiel #1
0
 public override void OnSearch(object param)
 {
     if (string.IsNullOrEmpty(SearchText))
     {
         Items = TempItems.Select(x => x).ToList();
     }
     else
     {
         Logger.Debug(string.Format("Search prescription with text- {0}", SearchText));
         Items = TempItems.Where(x => ((PrescriptionModel)x).Comments.Contains(SearchText.Trim())).ToList();
     }
 }
Beispiel #2
0
 public override void OnSearch(object param)
 {
     if (string.IsNullOrEmpty(SearchText))
     {
         Items = TempItems.Select(x => x).ToList();
     }
     else
     {
         Logger.Debug(string.Format("Search user with text- {0}", SearchText));
         Items = TempItems.Where(x => ((UserModel)x).UserName.Contains(SearchText.Trim())).ToList();
     }
 }