public CustomerServices(IMongoDbConnection connection, ILogger <CustomerServices> logger, NotificationServices notificationServices, UserRoleServices userroleServices, CRM.DataCRMProcessingServices dataCRMProcessingServices, MC.DataMCProcessingServices dataMCProcessingServices)
        {
            var client   = new MongoClient(connection.ConnectionString);
            var database = client.GetDatabase(connection.DataBase);

            _customer                  = database.GetCollection <Customer>(MongoCollection.CustomerCollection);
            _logger                    = logger;
            _notificationServices      = notificationServices;
            _userroleServices          = userroleServices;
            _dataCRMProcessingServices = dataCRMProcessingServices;
            _dataMCProcessingServices  = dataMCProcessingServices;
        }
Beispiel #2
0
 public CRMServices(ILogger <CRMServices> logger, CustomerServices customerServices, DataCRMProcessingServices dataCRMProcessingServices)
 {
     _logger                    = logger;
     _customerServices          = customerServices;
     _dataCRMProcessingServices = dataCRMProcessingServices;
 }