Beispiel #1
0
        //make it delete any shows it is related to.  or not if you want those always kept.
        public void Delete(ITour tour)
        {
            Checks.Argument.IsNotNull(tour, "tour");

            using (IUnitOfWork u = UnitOfWork.Begin())
            {
                _repo.Remove(tour);
                u.Commit();
            }
        }
Beispiel #2
0
 public void RemoveTour(Tour tour)
 {
     tourRepository.Remove(tour);
 }