private DeleteAccountListPackageItemViewModel Setup(DeleteAccountListPackageItemViewModel viewModel, Package package, User userToDelete, User currentUser) { _listPackageItemViewModelFactory.Setup(viewModel, package, currentUser); return(SetupInternal(viewModel, package, userToDelete)); }
private DeleteAccountListPackageItemViewModel SetupInternal(DeleteAccountListPackageItemViewModel viewModel, Package package, User userToDelete) { viewModel.WillBeOrphaned = _packageService.WillPackageBeOrphanedIfOwnerRemoved(package.PackageRegistration, userToDelete); return(viewModel); }
public DeleteAccountListPackageItemViewModel Create(Package package, User userToDelete, User currentUser) { var viewModel = new DeleteAccountListPackageItemViewModel(); return(Setup(viewModel, package, userToDelete, currentUser)); }