Exemplo n.º 1
0
        public async Task <IActionResult> UnpackFromZipHardWR()
        {
            await _context.UnZipToServerWithHardReload();

            // перезагрузка ToolTypesSearch
            _contextToolTypesSearch.DeleteAllToolTypeSearch();
            IEnumerable <ToolType> allToolTypes = _contextToolTypes.GetAllToolTypes();

            foreach (var toolType in allToolTypes)
            {
                _contextToolTypesSearch.CreateToolTypeSearch(toolType);
            }

            return(Ok());
        }
Exemplo n.º 2
0
        public IActionResult RefreshAllToolTypesSearch()
        {
            _dbs.DeleteAllToolTypeSearch();

            IEnumerable <ToolType> allToolTypes = _db.GetAllToolTypes();

            foreach (var toolType in allToolTypes)
            {
                _dbs.CreateToolTypeSearch(toolType);
            }
            return(Ok());
        }