// ReSharper restore InconsistentNaming

        /// <summary>Initializes a new instance of the <see cref="DefaultTailsService"/> class.</summary>
        /// <param name="ledgerService">The ledger service.</param>
        /// <param name="httpClientFactory"></param>
        public DefaultTailsService(
            ILedgerService ledgerService,
            IHttpClientFactory httpClientFactory)
        {
            LedgerService = ledgerService;
            HttpClient    = httpClientFactory.CreateClient();
        }
Example #2
0
 public RequestIdentityProofViewModel(
     IUserDialogs userDialogs,
     INavigationService navigationService,
     IAgentProvider agentContextProvider,
     IMessageService messageService,
     IConnectionService defaultConnectionService,
     ISchemaService schemaService,
     ICredentialService credentialService,
     ILedgerService ledgerService,
     IProofService proofService
     ) : base(
         "Request Identity Proof",
         userDialogs,
         navigationService)
 {
     _agentContextProvider = agentContextProvider;
     _connectionService    = defaultConnectionService;
     _proofService         = proofService;
     _messageService       = messageService;
     _schemaService        = schemaService;
     _credentialService    = credentialService;
     _ledgerService        = ledgerService;
     Schemas         = new RangeEnabledObservableCollection <SchemaRecord>();
     CredDefinitions = new RangeEnabledObservableCollection <DefinitionRecord>();
 }
 /// <summary>Initializes a new instance of the <see cref="DefaultDidExchangeService"/> class.</summary>
 public DefaultDidExchangeService(ILedgerService ledgerService, IWalletRecordService recordService, IProvisioningService provisioningService, IEventAggregator eventAggregator)
 {
     _ledgerService       = ledgerService;
     _recordService       = recordService;
     _provisioningService = provisioningService;
     _eventAggregator     = eventAggregator;
 }
 public ClaimRegisterController(ILedgerService ledgerService, IClaimRegisterService claimRegisterService, IGeneratePdf generatePdf, IUnitOfWork unitofWork)
 {
     this.ledgerService        = ledgerService;
     this.claimRegisterService = claimRegisterService;
     this.generatePdf          = generatePdf;
     this.unitofWork           = unitofWork;
 }
 public DashBoardWidgetController(IUnitOfWork unitOfWork, ILedgerService ledgerService, IFundTypeCodeService fundTypeService, ILoanRegisterService loanRegisterService)
 {
     this.ledgerService       = ledgerService;
     this.fundTypeService     = fundTypeService;
     this.loanRegisterService = loanRegisterService;
     this.unitOfWork          = unitOfWork;
 }
 public JsonBackedRoundService(IPlayerService playerService, ILedgerService ledgerService, IClock clock, string directory)
     : base(directory, RoundsJsonFile)
 {
     _playerService = playerService;
     _ledgerService = ledgerService;
     _clock         = clock;
 }
 public ProjectAllocationController(IRegionalRequestService reliefRequistionService
                                    , IFDPService fdpService
                                    , IAdminUnitService adminUnitService,
                                    IProgramService programService,
                                    ICommodityService commodityService,
                                    IRegionalRequestDetailService reliefRequisitionDetailService,
                                    IProjectCodeAllocationService projectCodeAllocationService,
                                    IProjectCodeService projectCodeService,
                                    IShippingInstructionService shippingInstructionService,
                                    IHubService hubService,
                                    IHubAllocationService hubAllocationService,
                                    ILog log,
                                    IReliefRequisitionService requisitionService, ITransactionService transactionservice, ILedgerService ledgerService)
 {
     this._regionalRequestService         = reliefRequistionService;
     this._adminUnitService               = adminUnitService;
     this._commodityService               = commodityService;
     this._fdpService                     = fdpService;
     this._programService                 = programService;
     this._reliefRequisitionDetailService = reliefRequisitionDetailService;
     this._projectCodeAllocationService   = projectCodeAllocationService;
     this._projectCodeService             = projectCodeService;
     this._shippingInstructionService     = shippingInstructionService;
     this._hubService                     = hubService;
     this._hubAllocationService           = hubAllocationService;
     this._requisitionService             = requisitionService;
     this._transactionService             = transactionservice;
     this._ledgerService                  = ledgerService;
     this._log = log;
 }
 public LoanRegisterController(ILedgerService ledgerService, ILoanRegisterService loanRegisterService, IUnitOfWork unitOfWork, IConfiguration configuration)
 {
     this.loanRegisterService = loanRegisterService;
     this.ledgerService       = ledgerService;
     this.unitOfWork          = unitOfWork;
     _connectionstring        = configuration.GetConnectionString("DefaultConnection");
 }
 public ProjectAllocationController(IRegionalRequestService reliefRequistionService
    , IFDPService fdpService
     , IAdminUnitService adminUnitService,
     IProgramService programService,
     ICommodityService commodityService,
     IRegionalRequestDetailService reliefRequisitionDetailService,
     IProjectCodeAllocationService projectCodeAllocationService, 
     IProjectCodeService projectCodeService,
     IShippingInstructionService shippingInstructionService, 
     IHubService hubService, 
     IHubAllocationService hubAllocationService,
     ILog log,
     IReliefRequisitionService requisitionService, ITransactionService transactionservice, ILedgerService ledgerService)
 {
     this._regionalRequestService = reliefRequistionService;
     this._adminUnitService = adminUnitService;
     this._commodityService = commodityService;
     this._fdpService = fdpService;
     this._programService = programService;
     this._reliefRequisitionDetailService = reliefRequisitionDetailService;
     this._projectCodeAllocationService = projectCodeAllocationService;
     this._projectCodeService = projectCodeService;
     this._shippingInstructionService = shippingInstructionService;
     this._hubService = hubService;
     this._hubAllocationService = hubAllocationService;
     this._requisitionService = requisitionService;
     this._transactionService = transactionservice;
        this._ledgerService = ledgerService;
     this._log = log;
 }
        // ReSharper restore InconsistentNaming

        /// <summary>Initializes a new instance of the <see cref="DefaultTailsService"/> class.</summary>
        /// <param name="ledgerService">The ledger service.</param>
        /// <param name="httpMessageHandler">The HTTP message handler.</param>
        public DefaultTailsService(
            ILedgerService ledgerService,
            HttpMessageHandler httpMessageHandler)
        {
            LedgerService = ledgerService;
            HttpClient    = new HttpClient(httpMessageHandler);
        }
Example #11
0
            public TestContext(bool isSave)
            {
                if (Thread.CurrentThread.Name == null)
                {
                    Thread.CurrentThread.Name = "UNIT TEST";
                }

                this.isSave = isSave;
                var factory = new FakeNodeServiceFactory();

                ConnectionService         = services.Add(factory.CreateConnectionService());
                DatabaseService           = services.Add(factory.CreateDatabaseService());
                LiveService               = services.Add(factory.CreateLiveService());
                LedgerService             = services.Add(factory.CreateLedgerService());
                DataTransformationService = services.Add(factory.CreateDataTransformationService());

                if (this.isSave)
                {
                    WipeDatabase();
                }

                DatabaseService.IsSave = isSave;
                services.Initialize();
                services.Start();

                dummyLedgerCreator = new DummyLedgerCreator(LedgerService, LiveService);
            }
 public ClaimRegisterController(IUnitOfWork unitofWork, IClaimRegisterService services, ILedgerService ledgerService, IConfiguration configuration, IGeneratePdf generatePdf)
 {
     this.services      = services;
     this.ledgerService = ledgerService;
     this.unitofWork    = unitofWork;
     this.generatePdf   = generatePdf;
     _connectionstring  = configuration.GetConnectionString("DefaultConnection");
 }
Example #13
0
 public void Dispose()
 {
     if (channel != null)
     {
         channel.Dispose();
         channel = null;
     }
 }
Example #14
0
        public LedgerBookController(
            [NotNull] UiContext uiContext,
            [NotNull] LedgerBookControllerFileOperations fileOperations,
            [NotNull] LedgerBookGridBuilderFactory uiBuilder,
            [NotNull] ILedgerService ledgerService,
            [NotNull] IReconciliationService reconService,
            [NotNull] NewWindowViewLoader newWindowViewLoader)
        {
            if (uiContext == null)
            {
                throw new ArgumentNullException(nameof(uiContext));
            }

            if (fileOperations == null)
            {
                throw new ArgumentNullException(nameof(fileOperations));
            }

            if (uiBuilder == null)
            {
                throw new ArgumentNullException(nameof(uiBuilder));
            }

            if (ledgerService == null)
            {
                throw new ArgumentNullException(nameof(ledgerService));
            }

            if (reconService == null)
            {
                throw new ArgumentNullException(nameof(reconService));
            }

            if (newWindowViewLoader == null)
            {
                throw new ArgumentNullException(nameof(newWindowViewLoader));
            }

            this.uiBuilder                    = uiBuilder;
            this.ledgerService                = ledgerService;
            this.reconService                 = reconService;
            this.newWindowViewLoader          = newWindowViewLoader;
            this.messageBox                   = uiContext.UserPrompts.MessageBox;
            this.questionBox                  = uiContext.UserPrompts.YesNoBox;
            this.inputBox                     = uiContext.UserPrompts.InputBox;
            FileOperations                    = fileOperations;
            FileOperations.LedgerService      = this.ledgerService;
            this.uiContext                    = uiContext;
            this.doNotUseNumberOfMonthsToShow = 2;

            MessengerInstance = uiContext.Messenger;
            MessengerInstance.Register <BudgetReadyMessage>(this, OnBudgetReadyMessageReceived);
            MessengerInstance.Register <StatementReadyMessage>(this, OnStatementReadyMessageReceived);

            this.ledgerService.Saved  += OnSaveNotificationReceieved;
            this.ledgerService.Closed += OnClosedNotificationReceived;
            this.ledgerService.NewDataSourceAvailable += OnNewDataSourceAvailableNotificationReceived;
        }
 public DefaultSchemaService(
     IWalletRecordService recordService,
     ILedgerService ledgerService,
     ITailsService tailsService)
 {
     RecordService = recordService;
     LedgerService = ledgerService;
     TailsService  = tailsService;
 }
Example #16
0
        // ReSharper restore InconsistentNaming

        /// <summary>
        /// Initializes a new instance of the <see cref="DefaultTailsService" /> class.
        /// </summary>
        /// <param name="ledgerService">The ledger service.</param>
        /// <param name="agentOptions">The agent options.</param>
        /// <param name="httpClientFactory">The HTTP client factory.</param>
        public DefaultTailsService(
            ILedgerService ledgerService,
            IOptions <AgentOptions> agentOptions,
            IHttpClientFactory httpClientFactory)
        {
            LedgerService = ledgerService;
            AgentOptions  = agentOptions.Value;
            HttpClient    = httpClientFactory.CreateClient();
        }
Example #17
0
 public TransactionController(ITransactionService transactionService,
      ILedgerService ledgerService, ICommodityService commodityService,
      IUserProfileService userProfileService)
     : base(userProfileService)
 {
     this._transactionService = transactionService;
      this._ledgerService = ledgerService;
      this._commodityService = commodityService;
 }
Example #18
0
 public TransactionController(ITransactionService transactionService,
                              ILedgerService ledgerService, ICommodityService commodityService,
                              IUserProfileService userProfileService)
     : base(userProfileService)
 {
     this._transactionService = transactionService;
     this._ledgerService      = ledgerService;
     this._commodityService   = commodityService;
 }
        // ReSharper restore InconsistentNaming

        /// <summary>
        /// Initializes a new instance of the <see cref="DefaultSchemaService"/> class.
        /// </summary>
        /// <param name="provisioningService">Provisioning service.</param>
        /// <param name="recordService">Record service.</param>
        /// <param name="ledgerService">Ledger service.</param>
        /// <param name="tailsService">Tails service.</param>
        public DefaultSchemaService(
            IProvisioningService provisioningService,
            IWalletRecordService recordService,
            ILedgerService ledgerService,
            ITailsService tailsService)
        {
            ProvisioningService = provisioningService;
            RecordService       = recordService;
            LedgerService       = ledgerService;
            TailsService        = tailsService;
        }
Example #20
0
 public SIAllocationController(
      IReliefRequisitionService requisitionService
     , ILedgerService ledgerService
     , IHubAllocationService hubAllocationService
     , IProjectCodeAllocationService projectCodeAllocationService
     )
 {
     this._requisitionService = requisitionService;
         this._ledgerService = ledgerService;
         this._hubAllocationService = hubAllocationService;
         this._projectCodeAllocationService = projectCodeAllocationService;
 }
 public SovrinPaymentService(
     IWalletRecordService recordService,
     IPoolService poolService,
     ILedgerService ledgerService,
     IProvisioningService provisioningService,
     ILogger <SovrinPaymentService> logger)
 {
     this.recordService       = recordService;
     this.poolService         = poolService;
     this.ledgerService       = ledgerService;
     this.provisioningService = provisioningService;
     this.logger = logger;
 }
Example #22
0
 public SIAllocationController
 (
     IReliefRequisitionService requisitionService
     , ILedgerService ledgerService
     , IHubAllocationService hubAllocationService
     , IProjectCodeAllocationService projectCodeAllocationService
 )
 {
     this._requisitionService           = requisitionService;
     this._ledgerService                = ledgerService;
     this._hubAllocationService         = hubAllocationService;
     this._projectCodeAllocationService = projectCodeAllocationService;
 }
Example #23
0
        // ReSharper restore InconsistentNaming

        /// <summary>
        /// Initializes a new instance of the <see cref="DefaultSchemaService" /> class.
        /// </summary>
        /// <param name="provisioningService">Provisioning service.</param>
        /// <param name="recordService">Record service.</param>
        /// <param name="ledgerService">Ledger service.</param>
        /// <param name="paymentService">The payment service.</param>
        /// <param name="tailsService">Tails service.</param>
        /// <param name="agentOptions">The agent options.</param>
        public DefaultSchemaService(
            IProvisioningService provisioningService,
            IWalletRecordService recordService,
            ILedgerService ledgerService,
            IPaymentService paymentService,
            ITailsService tailsService,
            IOptions <AgentOptions> agentOptions)
        {
            ProvisioningService = provisioningService;
            RecordService       = recordService;
            LedgerService       = ledgerService;
            this.paymentService = paymentService;
            TailsService        = tailsService;
            AgentOptions        = agentOptions.Value;
        }
Example #24
0
        public BlockchainNode(ServiceManager services)
        {
            if (!NodeConfiguration.IsInitialized())
            {
                NodeConfiguration.Initialize();
            }

            var factory = new RealNodeServiceFactory(NodeConfiguration.GetNetwork());

            ConnectionService         = services.Add(factory.CreateConnectionService());
            DatabaseService           = services.Add(factory.CreateDatabaseService());
            LiveService               = services.Add(factory.CreateLiveService());
            LedgerService             = services.Add(factory.CreateLedgerService());
            DataTransformationService = services.Add(factory.CreateDataTransformationService());
        }
Example #25
0
 public FDPSIAllocationController(
      IReliefRequisitionService requisitionService
     , ILedgerService ledgerService
     , IHubAllocationService hubAllocationService, IHubService hubService
     ,ISIPCAllocationService allocationService
     ,ITransactionService transactionService
     )
 {
     this._requisitionService = requisitionService;
         this._ledgerService = ledgerService;
         this._hubAllocationService = hubAllocationService;
     this._hubService = hubService;
         this._allocationService = allocationService;
         this._transactionService = transactionService;
 }
 public FDPSIAllocationController
 (
     IReliefRequisitionService requisitionService
     , ILedgerService ledgerService
     , IHubAllocationService hubAllocationService, IHubService hubService
     , ISIPCAllocationService allocationService
     , ITransactionService transactionService
 )
 {
     this._requisitionService   = requisitionService;
     this._ledgerService        = ledgerService;
     this._hubAllocationService = hubAllocationService;
     this._hubService           = hubService;
     this._allocationService    = allocationService;
     this._transactionService   = transactionService;
 }
Example #27
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultProofService"/> class.
 /// </summary>
 /// <param name="eventAggregator">The event aggregator.</param>
 /// <param name="connectionService">The connection service.</param>
 /// <param name="recordService">The record service.</param>
 /// <param name="provisioningService">The provisioning service.</param>
 /// <param name="ledgerService">The ledger service.</param>
 /// <param name="tailsService">The tails service.</param>
 /// <param name="logger">The logger.</param>
 public DefaultProofService(
     IEventAggregator eventAggregator,
     IConnectionService connectionService,
     IWalletRecordService recordService,
     IProvisioningService provisioningService,
     ILedgerService ledgerService,
     ITailsService tailsService,
     ILogger <DefaultProofService> logger)
 {
     EventAggregator     = eventAggregator;
     TailsService        = tailsService;
     ConnectionService   = connectionService;
     RecordService       = recordService;
     ProvisioningService = provisioningService;
     LedgerService       = ledgerService;
     Logger = logger;
 }
Example #28
0
 public ClaimTypeController(ILedgerService ledgerService, IConfiguration configuration,
                            IFundTypeService fundTypeService, IClaimRegisterService claimRegisterService,
                            IGeneratePdf generatePdf, IFundTypeCodeService fundService,
                            IClaimTypeServices claimTypeService, IUnitOfWork unitOfWork,
                            IChartofAccountService chartofAccountService, INavipService navipservice)
 {
     this.claimRegisterService  = claimRegisterService;
     this.ledgerService         = ledgerService;
     this.generatePdf           = generatePdf;
     this.fundService           = fundService;
     this.claimTypeService      = claimTypeService;
     this.fundTypeService       = fundTypeService;
     this.unitOfWork            = unitOfWork;
     this.chartofAccountService = chartofAccountService;
     this.navipservice          = navipservice;
     _connectionstring          = configuration.GetConnectionString("DefaultConnection");
 }
 public DefaultProofService(
     IConnectionService connectionService,
     IRouterService routerService,
     IMessageSerializer messageSerializer,
     IWalletRecordService recordService,
     IProvisioningService provisioningService,
     ILedgerService ledgerService,
     ITailsService tailsService,
     ILogger <DefaultProofService> logger)
 {
     TailsService        = tailsService;
     ConnectionService   = connectionService;
     RouterService       = routerService;
     MessageSerializer   = messageSerializer;
     RecordService       = recordService;
     ProvisioningService = provisioningService;
     LedgerService       = ledgerService;
     Logger = logger;
 }
        /// <summary>
        /// Create a single wallet and enable payments
        /// </summary>
        /// <returns></returns>
        public async Task InitializeAsync()
        {
            Host = new HostBuilder()
                   .ConfigureServices(services =>
            {
                services.Configure <ConsoleLifetimeOptions>(options =>
                                                            options.SuppressStatusMessages = true);
                services.AddAriesFramework(builder => builder
                                           .RegisterAgent(options =>
                {
                    options.WalletConfiguration = new WalletConfiguration {
                        Id = Guid.NewGuid().ToString()
                    };
                    options.WalletCredentials = new WalletCredentials {
                        Key = "test"
                    };
                    options.GenesisFilename = Path.GetFullPath("pool_genesis.txn");
                    options.PoolName        = GetPoolName();
                    options.EndpointUri     = "http://test";
                    options.IssuerKeySeed   = GetIssuerSeed();
                }));
            })
                   .Build();

            await Host.StartAsync();

            await Pool.SetProtocolVersionAsync(2);

            Context = await Host.Services.GetService <IAgentProvider>().GetContextAsync();

            Trustee = await Did.CreateAndStoreMyDidAsync(Context.Wallet,
                                                         new { seed = "000000000000000000000000Trustee1" }.ToJson());

            Trustee2 = await PromoteTrustee("000000000000000000000000Trustee2");

            Trustee3 = await PromoteTrustee("000000000000000000000000Trustee3");

            provisioningService = Host.Services.GetService <IProvisioningService>();
            recordService       = Host.Services.GetService <IWalletRecordService>();
            paymentService      = Host.Services.GetService <IPaymentService>();
            ledgerService       = Host.Services.GetService <ILedgerService>();
        }
Example #31
0
 public DefaultCredentialService(
     IRouterService routerService,
     ILedgerService ledgerService,
     IConnectionService connectionService,
     IWalletRecordService recordService,
     IMessageSerializer messageSerializer,
     ISchemaService schemaService,
     ITailsService tailsService,
     IProvisioningService provisioningService,
     ILogger <DefaultCredentialService> logger)
 {
     RouterService       = routerService;
     LedgerService       = ledgerService;
     ConnectionService   = connectionService;
     RecordService       = recordService;
     MessageSerializer   = messageSerializer;
     SchemaService       = schemaService;
     TailsService        = tailsService;
     ProvisioningService = provisioningService;
     Logger = logger;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultCredentialService"/> class.
 /// </summary>
 /// <param name="eventAggregator">The event aggregator.</param>
 /// <param name="messageService">The message service.</param>
 /// <param name="ledgerService">The ledger service.</param>
 /// <param name="connectionService">The connection service.</param>
 /// <param name="recordService">The record service.</param>
 /// <param name="schemaService">The schema service.</param>
 /// <param name="tailsService">The tails service.</param>
 /// <param name="provisioningService">The provisioning service.</param>
 /// <param name="logger">The logger.</param>
 public DefaultCredentialService(
     IEventAggregator eventAggregator,
     IMessageService messageService,
     ILedgerService ledgerService,
     IConnectionService connectionService,
     IWalletRecordService recordService,
     ISchemaService schemaService,
     ITailsService tailsService,
     IProvisioningService provisioningService,
     ILogger <DefaultCredentialService> logger)
 {
     EventAggregator     = eventAggregator;
     MessageService      = messageService;
     LedgerService       = ledgerService;
     ConnectionService   = connectionService;
     RecordService       = recordService;
     SchemaService       = schemaService;
     TailsService        = tailsService;
     ProvisioningService = provisioningService;
     Logger = logger;
 }
        public LedgerTransactionsController([NotNull] UiContext uiContext, [NotNull] ILedgerService ledgerService, [NotNull] IReconciliationService reconService)
        {
            if (uiContext == null)
            {
                throw new ArgumentNullException(nameof(uiContext));
            }

            if (ledgerService == null)
            {
                throw new ArgumentNullException(nameof(ledgerService));
            }

            if (reconService == null)
            {
                throw new ArgumentNullException(nameof(reconService));
            }

            this.ledgerService = ledgerService;
            this.reconService = reconService;
            MessengerInstance = uiContext.Messenger;
            MessengerInstance.Register<ShellDialogResponseMessage>(this, OnShellDialogResponseReceived);
            Reset();
        }
        public LedgerBucketViewController([NotNull] IAccountTypeRepository accountRepo, [NotNull] IUiContext context, [NotNull] ILedgerService ledgerService)
        {
            if (accountRepo == null)
            {
                throw new ArgumentNullException(nameof(accountRepo));
            }

            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            if (ledgerService == null)
            {
                throw new ArgumentNullException(nameof(ledgerService));
            }

            MessengerInstance = context.Messenger;
            MessengerInstance.Register<ShellDialogResponseMessage>(this, OnShellDialogResponseReceived);
            this.accountRepo = accountRepo;
            this.ledgerService = ledgerService;
            this.messageBox = context.UserPrompts.MessageBox;
        }
        public LedgerTransactionsController([NotNull] UiContext uiContext, [NotNull] ILedgerService ledgerService, [NotNull] IReconciliationService reconService)
        {
            if (uiContext == null)
            {
                throw new ArgumentNullException(nameof(uiContext));
            }

            if (ledgerService == null)
            {
                throw new ArgumentNullException(nameof(ledgerService));
            }

            if (reconService == null)
            {
                throw new ArgumentNullException(nameof(reconService));
            }

            this.ledgerService = ledgerService;
            this.reconService  = reconService;
            MessengerInstance  = uiContext.Messenger;
            MessengerInstance.Register <ShellDialogResponseMessage>(this, OnShellDialogResponseReceived);
            Reset();
        }
        public LedgerBucketViewController([NotNull] IAccountTypeRepository accountRepo, [NotNull] IUiContext context, [NotNull] ILedgerService ledgerService)
        {
            if (accountRepo == null)
            {
                throw new ArgumentNullException(nameof(accountRepo));
            }

            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            if (ledgerService == null)
            {
                throw new ArgumentNullException(nameof(ledgerService));
            }

            MessengerInstance = context.Messenger;
            MessengerInstance.Register <ShellDialogResponseMessage>(this, OnShellDialogResponseReceived);
            this.accountRepo   = accountRepo;
            this.ledgerService = ledgerService;
            this.messageBox    = context.UserPrompts.MessageBox;
        }
Example #37
0
 public LedgerController(ILedgerService ledgerService, ILedgerTypeService ledgerTypeService, IUserProfileService userProfileService)
     : base(userProfileService)
 {
     _ledgerService = ledgerService;
     _ledgerTypeService = ledgerTypeService;
 }
 public TransactionController(ITransactionService transactionService,ILedgerService ledgerService,ICommodityService commodityService)
 {
     this._transactionService = transactionService;
      this._ledgerService = ledgerService;
      this._commodityService = commodityService;
 }