public PortSettingService(PortSettingRepository repository)
 {
     this.repository = repository;
 }
 public PortSettingService()
 {
     this.repository = new PortSettingRepository();
 }