public void EditSonglist(SongListDTO songListDto, int songId, int playlistId) { using (var uow = UnitOfWorkProvider.Create()) { var songlist = _songlistRepository.GetById(songListDto.ID); Mapper.Map(songListDto, songlist); songlist.Playlist = GetSonglistPlaylist(playlistId); songlist.Song = GetSonglistSong(songId); _songlistRepository.Update(songlist); uow.Commit(); } }