Example #1
0
 public List <CMS_Categories_LayTatCa_Result> Search(string strSearch)
 {
     try
     {
         List <CMS_Categories_LayTatCa_Result> objs = MyContext.CMS_Categories_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;
     }
 }