public static PreOrderRepository GetInstance(PreOrderService service) { if (instance == null) { instance = new PreOrderRepository(service); } return(instance); }
public static PreOrderService GetInstance() { if (singleton == null) { singleton = new PreOrderService(); } return(singleton); }
private PreOrderRepository(PreOrderService service) { this.service = service; }