Пример #1
0
 public List <CSF_RoleFunction_LayTatCa_Result> Search(string strSearch)
 {
     try
     {
         List <CSF_RoleFunction_LayTatCa_Result> objs = MyContext.CSF_RoleFunction_LayTatCa().ToList();
         if (!String.IsNullOrEmpty(strSearch))
         {
             objs = objs.Where(f => f.TenChucNang.ToLower().Contains(strSearch.ToLower())).ToList();
         }
         return(objs);
     }
     catch (Exception ex)
     {
         Logs.WriteLog(ex);
         throw;
     }
 }