public void Delete(ISettings settings, int menuId) { Saver saver = new Saver(); saver.Save(new TransactionHandler(settings), th => { using (ILifetimeScope scope = m_dependencyContainer.GetContainer().BeginLifetimeScope()) { IMenuDataSaver dataSaver = scope.Resolve <IMenuDataSaver>(); dataSaver.Delete(new TransactionHandlerWrapper(th), menuId); } }); }
public void Delete(ITransactionHandler transactionHandler) { m_menuDataSaver.Delete(new TransactionHandlerWrapper(transactionHandler), MenuId); }