public void Update(String KODETIPE, String DESKRIPSI) { TIPEAKTOR item = new TIPEAKTOR(); item.KODETIPE = KODETIPE; item.DESKRIPSI = DESKRIPSI; item.MarkOld(); item.Save(""); }
private void SaveData() { if (RequestAction != "edited") { item = new Data.TIPEAKTOR(); } Data.TIPEAKTOR emptyItem = new Data.TIPEAKTOR(); // processing DESKRIPSI - start if (!string.IsNullOrEmpty(Request["value_DESKRIPSI"])) { item.DESKRIPSI = Convert.ToString(Request["value_DESKRIPSI"]); } else { item.DESKRIPSI = emptyItem.DESKRIPSI; } // //item.KODETIPE = Convert.ToString(Request["editid1"]); // string idx = string.Empty; idx = "1"; item.KODETIPE = Convert.ToString(Request["editid" + idx]); bool abortSaving = false; if (!abortSaving) { item.MarkOld(); item.Save(); idx = "1"; item.KODETIPE = Convert.ToString(Request["editid" + idx]); ShowSuccessMessage(); } }