public MuseumPackageEditViewModel Update(MuseumPackageEditViewModel museumPacakge) { MuseumPacakge _museumPacakge = museumPacakgeRepo.Add(museumPacakge.toModel()); UnitOfWork.commit(); return(_museumPacakge.toEditViewModel()); }
public void Remove(MuseumPackageEditViewModel admin) { museumPacakgeRepo.Remove(admin.toModel()); UnitOfWork.commit(); }