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