Exemple #1
0
        public async Task <IActionResult> Edit(long id, [Bind("ConfigurationManagementSeq,JissibiS,JissibiE,Host,HostDetail,UserName,Place,HostType,Os,Cpu,Memory,Share1,Share2,Share3,Share4,WebUrl,ParentHost,UpdateDt,UpdateId,UpdateTer,CreateDt,CreateId,CreateTer")] MConfigurationManagement mConfigurationManagement)
        {
            if (id != mConfigurationManagement.ConfigurationManagementSeq)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(mConfigurationManagement);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!MConfigurationManagementExists(mConfigurationManagement.ConfigurationManagementSeq))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(mConfigurationManagement));
        }
        public async Task<IActionResult> Edit(long id, [Bind("AccountSeq,AccountType,Id,Pass,DatabaseName,UpdateDt,UpdateId,UpdateTer,CreateDt,CreateId,CreateTer,ConfigurationManagementSeq")] MAccount mAccount)
        {
            if (id != mAccount.AccountSeq)
            {
                return NotFound();
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(mAccount);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!MAccountExists(mAccount.AccountSeq))
                    {
                        return NotFound();
                    }
                    else
                    {
                        throw;
                    }
                }
                return RedirectToAction(nameof(Index));
            }
            return View(mAccount);
        }