Exemple #1
0
        public UserController(dbr.UserRepository repo)
        {
            userRepo = repo;

            Sync.LocationProcessor.Initialize(userRepo.Database);
            Sync.LocationProcessor.SyncFromDatabase();
        }
Exemple #2
0
 public static void Initialize(PizzaStoreData.DataAccess.PizzaStoreDBContext database)
 {
     Database = database ?? throw new ArgumentNullException(nameof(database));
     userRepo = new dbr.UserRepository(Database);
 }