Esempio n. 1
0
 public FraudDetectionService()
 {
     _transactionRepo     = new MDRepository <TransactionDTO>("Transactions");
     _countryRepo         = new MDRepository <CountryDTO>("Countries");
     _clientCountryRepo   = new MDRepository <ClientCountryDTO>("ClientCountries");
     _cardVendorRepo      = new MDRepository <CardVendorDTO>("CardVendors");
     _cardTypeRepo        = new MDRepository <CardTypeDTO>("CardTypes");
     _transactionTypeRepo = new MDRepository <TransactionTypeDTO>("TransactionTypes");
 }
Esempio n. 2
0
        public bool SaveTransactionStatus(int transactionId, int statusCode)
        {
            var repo   = new MDRepository <TransactionDTO>();
            var update = Builders <TransactionDTO> .Update.Set("Class", statusCode);

            repo.Update(x => x.TransactionId == transactionId, update);
            update = Builders <TransactionDTO> .Update.Set("Verified", true);

            repo.Update(x => x.TransactionId == transactionId, update);
            return(true);
        }