Example #1
0
        public async Task <ICollection <Customer> > FilterAndPaged(int skip, int take, string name)
        {
            if (name == null)
            {
                name = string.Empty;
            }

            return(await _customersRepository.FilterAsync(
                       skip,
                       take,
                       p => p.Name.ToLower().Contains(name),
                       p => p.Name));
        }