public ActionResult DeleteWorker(int WorkerNumber) { _workerServises.Delete(new Worker { PassportNumber = WorkerNumber }); return(RedirectToAction("EditWorkersInformation")); }
public void Delete(FullUser fullUser) { _workerServices.Delete(fullUser.Worker); }