<pre>public virtual void Edit(T entity) { _entities.Entry(entity).State = EntityState.Modified; _entities.SaveChanges(); } public virtual T GetById(int id) { return _entities.Set<T>().Find(id); }
int id = Convert.ToInt32(HiddenField1.Value); tblamt = amtdll.GetById(id); tblamt.Amt_Type = txt_amt_type.Text; tblamt.UserId = User.Identity.GetUserId(); if (CheckBox1.Checked == true) { tblamt.IsActive = true; } else { tblamt.IsActive = false; } amtdll.Edit(tblamt);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)