Example #1
0
        public IEnumerable <Color> GetColorFilter(string search)
        {
            if (!string.IsNullOrEmpty(search))
            {
                var colores = colorRepository
                              .GetMany(x => x.Descripcion.Contains(search))
                              .OrderBy(x => x.Codigo);

                return(colores);
            }
            return(GetColores());
        }