public async Task DeleteAsync(int id)
        {
            var result = await _dbContext.Artist.SingleAsync(x => x.Id == id);

            var art = ArtistMapper.FromDatabase(result);

            _dbContext.Artist.Remove(result);
            _dbContext.SaveChanges();
        }
        public async Task <Models.Artist> GetAsync(int id)
        {
            var result = await _dbContext.Artist.SingleOrDefaultAsync(x => x.Id == id);

            return(ArtistMapper.FromDatabase(result));
        }
 public IEnumerable <Models.Artist> GetAll()
 {
     return(_dbContext.Artist.Select(x => ArtistMapper.FromDatabase(x)));
 }