public async Task <IActionResult> Edit(int id, [Bind("ConfigurationManagementId,JissibiS,JissibiE,Host,HostDetail,UserName,Place,HostType,Os,Cpu,Memory,Share1,Share2,Share3,Share4,WebUrl,ParentHost,UpdateDt,UpdateId,UpdateTer,CreateDt,CreateId,CreateTer,AccountType,AccountId,Pass,DatabaseName")] VConfigAccount vConfigAccount) { if (id != vConfigAccount.ConfigurationManagementId) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(vConfigAccount); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!VConfigAccountExists(vConfigAccount.ConfigurationManagementId)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(vConfigAccount)); }
public async Task <IActionResult> Create([Bind("ConfigurationManagementId,JissibiS,JissibiE,Host,HostDetail,UserName,Place,HostType,Os,Cpu,Memory,Share1,Share2,Share3,Share4,WebUrl,ParentHost,UpdateDt,UpdateId,UpdateTer,CreateDt,CreateId,CreateTer,AccountType,AccountId,Pass,DatabaseName")] VConfigAccount vConfigAccount) { if (ModelState.IsValid) { _context.Add(vConfigAccount); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(vConfigAccount)); }