public async Task <IActionResult> Edit(int id, [Bind("Id,Gbukrs,Bukrs,Pernr,Subty,BegDa,EndDa,Seqnr,Aedtm,Uname,Rimss,Nimss,Ijred,PersonalId")] IT369 iT369) { if (id != iT369.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(iT369); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!IT369Exists(iT369.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(iT369)); }
public async Task <IActionResult> Create([Bind("Id,Gbukrs,Bukrs,Pernr,Subty,BegDa,EndDa,Seqnr,Aedtm,Uname,Rimss,Nimss,Ijred,PersonalId")] IT369 iT369) { if (ModelState.IsValid) { _context.Add(iT369); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(iT369)); }