public UsuarioUrlsController(ApplicationDbContext context,
                                     IActionDescriptorCollectionProvider provider) : base(context)
        {
            _context  = context;
            _provider = provider;


            if (!_context.RaizUrl.Any())
            {
                RaizUrlsController raizUrlsController = new RaizUrlsController(_context, _provider);
            }

            if (!_context.Url.Any())
            {
                UrlsController urlsController = new UrlsController(_context, _provider);
            }
        }
예제 #2
0
        public UrlsController(ApplicationDbContext context,
                              IActionDescriptorCollectionProvider provider) : base(context)
        {
            _context  = context;
            _provider = provider;


            if (!_context.RaizUrl.Any())
            {
                RaizUrlsController raizUrlsController = new RaizUrlsController(_context, _provider);
                //  raizUrlsController.PreencherTabela();
            }

            // Procura por Urls
            if (!_context.Url.Any())
            {
                PreencherTabela();
            }
        }