Beispiel #1
0
        public MuseumPackageEditViewModel Update(MuseumPackageEditViewModel museumPacakge)
        {
            MuseumPacakge _museumPacakge = museumPacakgeRepo.Add(museumPacakge.toModel());

            UnitOfWork.commit();
            return(_museumPacakge.toEditViewModel());
        }
Beispiel #2
0
 public void Remove(MuseumPackageEditViewModel admin)
 {
     museumPacakgeRepo.Remove(admin.toModel());
     UnitOfWork.commit();
 }