Former K&L Gates partner Willie Dennis was sentenced to two years in prison Friday after a Manhattan federal jury found him guilty of cyberstalking three of his former law partners through messages that threatened their careers and their families.