public static OutletRepository GetInstance(OutletService serviceService)
 {
     if (instance == null)
     {
         instance = new OutletRepository(serviceService);
     }
     return(instance);
 }
예제 #2
0
 public static OutletService GetInstance()
 {
     if (singleton == null)
     {
         singleton = new OutletService();
     }
     return(singleton);
 }
 private OutletRepository(OutletService serviceService)
 {
     this.serviceService = serviceService;
 }