public Application Validate(string publicKey) { using (var context = new BankPaymentContext()) { var app = context.Applications.FirstOrDefault(x => x.PublicKey == publicKey); if (app == null) { return(null); } return(app); } }
public TransactionRepository(BankPaymentContext context) { this.context = context; entity = context.Set <Transaction>(); }
public ApplicationBankParamRepository(BankPaymentContext context) { this.context = context; entity = context.Set <ApplicationBankParam>(); }
public BankRepository(BankPaymentContext context) { this.context = context; entity = context.Set <Bank>(); }