public async Task <IActionResult> Edit(int id, [Bind("Id,KullaniciAd,OzelIp,OIpPBas,OIpPBit,GercekIp,GIpPBas,GIpPBit,OBasTarih,OBitTarih,UpByte,DownByte,BKM,ODurum,BPvc,ServisNo,OKod,Imza")] BtkNat btkNat) { if (id != btkNat.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(btkNat); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!BtkNatExists(btkNat.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(btkNat)); }
public async Task <IActionResult> Create([Bind("Id,KullaniciAd,OzelIp,OIpPBas,OIpPBit,GercekIp,GIpPBas,GIpPBit,OBasTarih,OBitTarih,UpByte,DownByte,BKM,ODurum,BPvc,ServisNo,OKod,Imza")] BtkNat btkNat) { if (ModelState.IsValid) { _context.Add(btkNat); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(btkNat)); }