Пример #1
0
 public static DressesStorage Instance(DressesDataManager DressDataManager)
 {
     if (_instance == null)
     {
         _instance             = new DressesStorage();
         _instance.DataManager = DressDataManager;
         _instance.LoadCache();
     }
     _instance.DataManager = DressDataManager;
     return(_instance);
 }
Пример #2
0
 public AtelierFacade(DressBookingDB1Entities context)
 {
     _dressesDataManager = new DressesDataManager(context);
     _orderDataManager   = new OrderValidationDataManager(context);
     _ds = DressesStorage.Instance(_dressesDataManager);
 }