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

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