public VoteModel CreateVote(int songId, VoteModel newVote) { ValidateSong(songId); var voteEntity = repository.CreateVote(mapper.Map <VoteEntity>(newVote)); return(mapper.Map <VoteModel>(voteEntity)); }
public VoteModel CreateVote(int songId, VoteModel vote) { ValidateSong(songId); return(repository.CreateVote(songId, vote)); }