Пример #1
0
 public static PreOrderRepository GetInstance(PreOrderService service)
 {
     if (instance == null)
     {
         instance = new PreOrderRepository(service);
     }
     return(instance);
 }
Пример #2
0
 public static PreOrderService GetInstance()
 {
     if (singleton == null)
     {
         singleton = new PreOrderService();
     }
     return(singleton);
 }
Пример #3
0
 private PreOrderRepository(PreOrderService service)
 {
     this.service = service;
 }