コード例 #1
0
        public bool DeleteVote(int songId, int id)
        {
            var vote = GetVote(songId, id);

            if (vote == null)
            {
                throw new NotFoundException($"The Vote: {id} does not exist in the songId: {songId}");
            }
            return(repository.DeleteVote(vote.Id));
        }