// GET: Employees/Delete/5 public ActionResult Delete(int id, bool?saveChangesError) { if (saveChangesError.GetValueOrDefault()) { ViewBag.ErrorMessage = "Unable to save changes. Try again, and if the problem persists see your system administrator."; } return(View(EmployeeMethods.GetItem(id))); }
// GET: Employees/Edit/5 public ActionResult Edit(int id) { Employee item = EmployeeMethods.GetItem(id); if (item == null) { return(HttpNotFound()); } return(View(item)); }