Exemplo n.º 1
0
 public IEnumerable <Artwork> GetArtworks(string name = null, string artist = null, string tagName = null)
 {
     if (string.IsNullOrEmpty(name) && string.IsNullOrEmpty(artist) && string.IsNullOrEmpty(tagName))
     {
         return(_artworkRepository.GetAll());
     }
     return(_artworkRepository.GetBy(name, artist, tagName));
 }