public ArtistService(ArtistRepository artistRepository, ArtistListQuery artistListQuery, AlbumListQuery albumListQuery, AlbumRepository albumRepository, ClientRepository clientRepository) { this.artistRepository = artistRepository; this.artistListQuery = artistListQuery; this.albumRepository = albumRepository; this.albumListQuery = albumListQuery; this.clientRepository = clientRepository; }
public AlbumService(AlbumRepository albumRepository, AlbumListQuery albumListQuery, InterpretRepository interpretRepository, AlbumReviewRepository albumReviewRepository, SongRepository songRepository) { _albumRepository = albumRepository; _albumListQuery = albumListQuery; _interpretRepository = interpretRepository; _albumReviewRepository = albumReviewRepository; _songRepository = songRepository; }
public Genre_AlbumService(Genre_AlbumRepository genre_albumRepository, Genre_AlbumListQuery genre_albumListQuery, GenreRepository genreRepository, GenreListQuery genreListQuery, AlbumListQuery albumListQuery, AlbumRepository albumRepository, ClientRepository clientRepository) { this.genre_albumListQuery = genre_albumListQuery; this.genre_albumRepository = genre_albumRepository; this.genreRepository = genreRepository; this.genreListQuery = genreListQuery; this.albumRepository = albumRepository; this.albumListQuery = albumListQuery; this.clientRepository = clientRepository; }
public AlbumService(AlbumRepository albumRepository, AlbumListQuery albumListQuery, AlbumReviewListQuery albumReviewListQuery, AlbumReviewRepository albumReviewRepository, ArtistRepository artistRepository, SongListQuery songListQuery, SongRepository songRepository, ArtistListQuery artistListQuery, ClientRepository clientRepository) { this.albumRepository = albumRepository; this.albumListQuery = albumListQuery; this.albumReviewRepository = albumReviewRepository; this.albumReviewListQuery = albumReviewListQuery; this.artistRepository = artistRepository; this.songListQuery = songListQuery; this.songRepository = songRepository; this.artistListQuery = artistListQuery; this.clientRepository = clientRepository; }
public async Task <AlbumListResult> GetAllAlbums(int page_number, int page_size, string orderBy, string sortDirection) { if (page_number <= 0) { page_number = 1; } if (page_size <= 0) { page_size = 10; } var query = new AlbumListQuery { Skip = (page_number - 1) * page_size, Take = page_size, SortBy = orderBy ?? "", SortDirection = sortDirection ?? "asc" }; var albumListResult = await _mediator.Send(query); return(albumListResult); }