public async Task <IActionResult> Edit(int id, [Bind("ID3,ServiceOrder3,SID3,TQ3,AO3,Name3,TglOrderItenos3,Alamat3,KomenItenos3,Pic3,AreaCode3,Metro3,Dat3,Gpon3,SN3,Vlan3,TglPerintahSurvei3,TglHasilSurvei3,TaggingPelanggan3,TeknisiSurvei3,TaggingODP3,TglPerintahPT13,TglSelesaiPTmin13,TeknisiPTmin13,TglPerintahJT3,TglJTSelesai3,Komen3,TglClosed3,Status3,SiteID,Long,Lat")] WantTSEL wantTSEL) { if (id != wantTSEL.ID3) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(wantTSEL); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!WantTSELExists(wantTSEL.ID3)) { return(NotFound()); } else { throw; } } return(RedirectToAction("Index")); } return(View(wantTSEL)); }
public async Task <IActionResult> Create([Bind("ID3,ServiceOrder3,SID3,TQ3,AO3,Name3,TglOrderItenos3,Alamat3,KomenItenos3,Pic3,AreaCode3,Metro3,Dat3,Gpon3,SN3,Vlan3,TglPerintahSurvei3,TglHasilSurvei3,TaggingPelanggan3,TeknisiSurvei3,TaggingODP3,TglPerintahPT13,TglSelesaiPTmin13,TeknisiPTmin13,TglPerintahJT3,TglJTSelesai3,Komen3,TglClosed3,Status3,SiteID,Long,Lat")] WantTSEL wantTSEL) { if (ModelState.IsValid) { _context.Add(wantTSEL); await _context.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(wantTSEL)); }