private void TransactionTypesOnCollectionChanged(object sender, NotifyCollectionChangedEventArgs notifyCollectionChangedEventArgs) { var transactionTypes = TransactionTypes.Select(Mapper.Map <DtoType>).ToArray(); _commandDispatcher.Execute(new UpsertTransactionTypesCommand(transactionTypes)); }