Пример #1
0
 private void LlenaCatalogoConsulta()
 {
     try
     {
         string           filtro       = txtFiltro.Text.ToLower().Trim();
         List <Catalogos> lstcatalogos = _servicioCatalogos.ObtenerCatalogos(false);
         if (filtro != string.Empty)
         {
             lstcatalogos = lstcatalogos.Where(w => w.Descripcion.ToLower().Contains(filtro)).ToList();
         }
         tblResults.DataSource = lstcatalogos;
         tblResults.DataBind();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message);
     }
 }