public ProductService()
        {
            var instance = SingletonPattern.Instance();

            db = instance.ProductDB;
            if (!instance.IsInitDummyData)
            {
                instance.IsInitDummyData = true;
                InitDummyDataProduct();
            }
        }
Beispiel #2
0
        public StoreService()
        {
            var instance = SingletonPattern.Instance();

            db = instance.StoreDB;
            //InitDummyData();
            if (!instance.CheckData)
            {
                instance.CheckData = true;
                InitDummyDataStore();
            }
        }