// 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)); }
// 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)); }