Exemplo n.º 1
0
        public List <Author> GetAuthorsFiltered()
        {
            var authors = authorsRepository.GetAuthorsWithBooksAndAddress();

            var filtered = authors.Where(x => x.Books.Count > 0)
                           .ToList();

            return(filtered);
        }