public ActionResult Delete(int id) { db.Entry(db.ARTICLEREPLY.Find(id)).State = System.Data.Entity.EntityState.Deleted; db.SaveChanges(); return RedirectToAction("Index", "Home"); }