// GET: Employee/Delete/5 public ActionResult Delete(int id) { if (ModelState.IsValid) { EmpContext.DeleteEmployee(id); } // Go to home page after an employee has been removed return(RedirectToAction("Index", "Home")); }