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();
 }
Esempio n. 2
0
 public ActionResult DeleteConfirmed(string id)
 {
     _exeManager.Delete(id);
     return(RedirectToAction("Index"));
 }