public IActionResult Edit(CUSTOMER cUSTOMER) { if (ModelState.IsValid) { _context.Update(cUSTOMER); _context.SaveChanges(); return(RedirectToAction("Index")); } return(View(cUSTOMER)); }
public IActionResult Edit(AIRCRAFT aIRCRAFT) { if (ModelState.IsValid) { _context.Update(aIRCRAFT); _context.SaveChanges(); return(RedirectToAction("Index")); } ViewData["MOD_CODE"] = new SelectList(_context.MODEL, "MOD_CODE", "MOD_CODENavigation", aIRCRAFT.MOD_CODE); return(View(aIRCRAFT)); }
public IActionResult Edit(CHARTER cHARTER) { if (ModelState.IsValid) { _context.Update(cHARTER); _context.SaveChanges(); return(RedirectToAction("Index")); } ViewData["AC_NUMBER"] = new SelectList(_context.AIRCRAFT, "AC_NUMBER", "AC_NUMBERNavigation", cHARTER.AC_NUMBER); ViewData["CUS_CODE"] = new SelectList(_context.CUSTOMER, "CUS_CODE", "CUS_CODENavigation", cHARTER.CUS_CODE); return(View(cHARTER)); }