public Formation Delete(Guid id) { var formation = _repository.GetOne(id); _repository.Delete(formation); if (Commit()) { return(formation); } return(null); }
public ActionResult DeleteConfirmed(int id) { var formation = _repository.GetSingle(id); _repository.Delete(formation); return(RedirectToAction("Index")); }