Exemple #1
0
        private List <Excepcion> Paginar(out int totalRecords)
        {
            var text        = txtBuscar.Text.Trim();
            var excepciones = Excepciones.Where(e => string.IsNullOrEmpty(text) || e.Descripcion.ToLower().Contains(text.ToLower())).ToList();

            totalRecords = excepciones.Count;
            excepciones  = excepciones.Skip(ucPaginador.PageSize * (ucPaginador.CurrentPage - 1)).Take(ucPaginador.PageSize).ToList();
            return(excepciones);
        }