public ActionResult Edit(Task task) { if (ModelState.IsValid) { db.Entry(task).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(task)); }
public void Update(TaskList tasklist) { _db.Entry(tasklist).State = EntityState.Modified; Validated.SaveIt(_db); }