public ActionResult ConfirmDelete(int id) { var employee = db.GetEmployeeById(id); db.Delete(employee); return(RedirectToAction("Index", "Home")); }
public ActionResult ConfirmDelete(int id) { var employee = db.GetEmployeeById(id); db.Delete(employee); return(RedirectToAction("Index", "Home")); }