public void AddData(int id)
        {
            using (var db = new DataDbContext())
            {
                var model = new DataModel
                {
                    UserId = id, Name = $"Autofac {id}", Time = DateTime.Now.ToString("HH:mm:ss")
                };

                db.DataModels.Add(model);
                db.SaveChanges();
            }

            Debug.WriteLine("Процесс пошел");
        }
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            using (var db = new DataDbContext())
            {
                db.Database.Initialize(false);
            }

            AutofacConfig.ConfigureContainer();

            //var cont = ContainerInstanceProvider.GetContainerInstance();

            DefaultScheduler.Start();
        }