예제 #1
0
        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));
 }