Ejemplo n.º 1
0
        public BillService(IGaraDatabaseSettings settings, RepairedRequestService rrService, CustomerService customerService)
        {
            var client   = new MongoClient(settings.ConnectionString);
            var database = client.GetDatabase(settings.DatabaseName);

            _bill = database.GetCollection <Bill>(settings.BillCollectionName);

            _rrService       = rrService;
            _customerService = customerService;
        }
        public AccessoryIssueService(IGaraDatabaseSettings settings, RepairedRequestService rrService, AccessoryService accessoryService)
        {
            var client   = new MongoClient(settings.ConnectionString);
            var database = client.GetDatabase(settings.DatabaseName);

            _accessoryIssue = database.GetCollection <AccessoryIssue>(settings.AccessoryIssueCollectionName);

            _rrService        = rrService;
            _accessoryService = accessoryService;
        }