public ActionResult DeleteConfirmed(int id) { Worker worker = workerManager.Find(x => x.Id == id); workerManager.Delete(worker); return(RedirectToAction("Index")); }
// DELETE: api/Worker/5 public bool Delete(int id) { return(wm.Delete(id)); }