public IEnumerable <Poem> GetPoems(string author = null, string theme = null) { if (string.IsNullOrEmpty(author) && string.IsNullOrEmpty(theme)) { return(_poemRepository.GetAll()); } return(_poemRepository.GetBy(author, theme)); }