public void DeleteUserLikedJoke(DeleteUserLikedJokeViewModel vm) { var userId = GetCurrentUser().Id; var jokesRepo = new JokesRepository(_connectionString); jokesRepo.DeleteUserLikedJoke(userId, vm.JokeId); }
public void DeleteUserLikedJoke(DeleteUserLikedJokeViewModel vm) { var userId = GetCurrentUser().Id; var jokesRepo = new JokesRepository(_connectionString); jokesRepo.DeleteUserLikedJoke(userId, vm.JokeId); }