示例#1
0
        protected void Application_Start()
        {
            var parsers = new List <IParser> {
                new MordovMediaParser(), new PgParser()
            };
            var dbSeeder = new DbSeeder();

            foreach (var parser in parsers)
            {
                dbSeeder.AddNews(parser.ParseNews());
            }

            var parserRates = new ExchangeRatesParser();

            dbSeeder.AddRates(parserRates.ParseExchangeRates());
            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
        }