コード例 #1
0
        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"));
        }