private async Task <Media.DataAccess.Entities.Track> Get(ITrackIdentity trackId) { if (trackId == null) { throw new ArgumentNullException(nameof(trackId)); } return(await this.Context.Track.Include(x => x.Album).FirstOrDefaultAsync(x => x.Id == trackId.Id)); }
public Task <Track> GetAsync(ITrackIdentity track) { return(this.TrackDataAccess.GetAsync(track)); }
public async Task <Track> GetAsync(ITrackIdentity trackId) { var result = await this.Get(trackId); return(this.Mapper.Map <Track>(result)); }