Пример #1
0
        public int LikeChosenSong(string songTitle)
        {
            int songId = _songService.CheckSongExistsInDatabase(songTitle);

            if (songId != -1)
            {
                _songService.LikeSong(songId);
                _songService.SaveLikeToFile(songId);
            }
            return(songId);
        }