Exemplo n.º 1
0
        // GET: InformationSystems/Create
        public async Task <IActionResult> Create()
        {
            IndexViewModel3 req = new IndexViewModel3 {
                PostLists = await _context.PostLists.ToListAsync(), Subdivitions = await _context.Subdivitions.ToListAsync(), DocumentsIBs = await _context.DocumentsIB.ToListAsync(), Rools = await _context.Rools.ToListAsync()
            };

            return(View(req));
        }
Exemplo n.º 2
0
        // GET: InformationSystems/Edit/5
        public async Task <IActionResult> Edit(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var informationSystem = await _context.InformationSystems.FindAsync(id);

            if (informationSystem == null)
            {
                return(NotFound());
            }
            IndexViewModel3 req = new IndexViewModel3 {
                PostLists = await _context.PostLists.ToListAsync(), Subdivitions = await _context.Subdivitions.ToListAsync(), DocumentsIBs = await _context.DocumentsIB.ToListAsync(), Rools = await _context.Rools.ToListAsync()
            };

            return(View(informationSystem));
        }