示例#1
0
        public async Task <AlbumDto> AddAlbumAsync(string username, CreateAlbumDto newAlbum)
        {
            var album = _mapper.Map <Album>(newAlbum);
            await _albumRepository.AddAlbumAsync(username, album);

            return(_mapper.Map <AlbumDto>(album));
        }