public CityMuseumViewModel(INavigation navigation, bool?IsConnected = null) { Navigation = navigation; repository = new CityMuseumRepository(new CityDBContext()); neighbourrepo = new NeighbourhoodRepository(); reviewRepository = new CityReviewRepository(); if (IsConnected != null) { isOnline = (bool)IsConnected; } else { isOnline = isConnected(); } }
public CityShopViewModel(INavigation navigation, bool?isConn = null) { Navigation = navigation; repository = new CityShoppingRepository(new Data.CityDBContext()); neighbourrepo = new NeighbourhoodRepository(); reviewRepository = new CityReviewRepository(); if (isConn != null) { isOnline = (bool)isConn; } else { isOnline = isConnected(); } }
public CityEventViewModel(INavigation navigation, bool?connectLive) { Navigation = navigation; repository = new CityEventRepository(new CityDBContext()); neighbourrepo = new NeighbourhoodRepository(); reviewRepository = new CityReviewRepository(); if (connectLive.HasValue) { isOnline = (bool)connectLive; } else { isOnline = isConnected(); } }