示例#1
0
 public List <CSF_Functions_LayTatCa_Result> Search(string strSearch)
 {
     try
     {
         List <CSF_Functions_LayTatCa_Result> objs = MyContext.CSF_Functions_LayTatCa().ToList();
         if (!String.IsNullOrEmpty(strSearch))
         {
             objs = objs.Where(f => f.Name.ToLower().Contains(strSearch.ToLower())).ToList();
         }
         return(objs);
     }
     catch (Exception ex)
     {
         Logs.WriteLog(ex);
         throw;
     }
 }