Exemplo n.º 1
0
        public IEnumerable <Genre> GetAllGenres()
        {
            var x = GenreQueryHandlerFactory.Build(new AllGenresQuery(), db);

            return(x.Get());
        }
Exemplo n.º 2
0
 public Genre GetGenre(Guid id)
 {
     return(GenreQueryHandlerFactory.Build(new OneGenreQuery(id), db).Get());
 }