public async Task <IActionResult> Edit(int id, [Bind("noriId,noriName")] nori nori) { if (id != nori.noriId) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(nori); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!noriExists(nori.noriId)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(nori)); }
public async Task <IActionResult> Edit(int id, [Bind("azizId,azizName")] aziz aziz) { if (id != aziz.azizId) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(aziz); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!azizExists(aziz.azizId)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(aziz)); }
public async Task <IActionResult> Edit(int id, [Bind("checkId,checkName")] check check) { if (id != check.checkId) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(check); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!checkExists(check.checkId)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(check)); }