From May 2009 to May 2012 , we prospectively enrolled 40 patients , each of whom had been scheduled for a salpingectomy because of a tubal ectopic pregnancy , and randomized them into two groups : transvaginal endoscopic surgery and laparoscopic approach .