Store update, insert, or delete statement affected an unexpected number of rows (0). Entities may have been modified or deleted since entities were loaded. Refresh ObjectStateManager entries.
public ActionResult Delete(tblEmployee viwEmp) { test.Entry(viwEmp).State = System.Data.EntityState.Deleted; test.SaveChanges(); return RedirectToAction("CRUDS"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)