public ActionResult Edit([Bind(Include = "Id,Name,Description")] ApplicationRole applicationRole) { if (ModelState.IsValid) { db.Entry(applicationRole).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(applicationRole)); }
public void Update(IUserProfile item) { _dataContext.Entry(item).State = EntityState.Modified; }