private void DeleteExecutors(List <Executor> executors) { if (executors.Any()) //if there are any executors with this service { foreach (Executor ex in executors) { _exeManager.Delete(ex.ExecutorId); } } _unitOfWork.Save(); }
public ActionResult DeleteConfirmed(string id) { _exeManager.Delete(id); return(RedirectToAction("Index")); }