December 2019
Intermediate to advanced
510 pages
11h 33m
English
The new Catalog.Infrastructure functionalities extend the Catalog.Domain project and expose IArtistRepository and IGenreRepository to the controllers of the API project. First of all, we should create a couple of new service classes in the Catalog.Domain project in order to query the underlying Catalog.Infrastructure layer. Let's start by defining the IArtistService and IGenreService interfaces in the Services folder of the Catalog.Domain project:
using System.Collections.Generic;using System.Threading;using System.Threading.Tasks;using Catalog.Domain.Requests.Artists;using Catalog.Domain.Responses;namespace Catalog.Domain.Services{ public interface IArtistService { Task<IEnumerable<ArtistResponse ...