public Formation Delete(Guid id)
        {
            var formation = _repository.GetOne(id);

            _repository.Delete(formation);

            if (Commit())
            {
                return(formation);
            }

            return(null);
        }
示例#2
0
        public ActionResult DeleteConfirmed(int id)
        {
            var formation = _repository.GetSingle(id);

            _repository.Delete(formation);
            return(RedirectToAction("Index"));
        }