Ejemplo n.º 1
0
        public BusParkUI()
        {
            var builder = new ConfigurationBuilder().SetBasePath(Directory.GetCurrentDirectory())
                          .AddJsonFile("appsettings.json", false, true);
            IConfigurationRoot configurationRoot = builder.Build();

            ConnectionString = configurationRoot.GetConnectionString("DebugConnectionString");
            ProviderName     = configurationRoot.GetSection("AppConfig").GetChildren().Single(item => item.Key == "ProviderName").Value;
            context          = new BusParkContext(ConnectionString, ProviderName);
            stoService       = new StoService(context);
        }
Ejemplo n.º 2
0
 public StoController(StoService stoService)
 {
     this.stoService = stoService;
 }