Example #1
0
 public CustomerController(CreditCardContext context,
                           IWebHostEnvironment environment,
                           ICalculateCreditCard calculateCreditCard,
                           ICustomerRepository customerRepository,
                           ICardDetailsRepository cardDetailsRepository
                           )
 {
     _context               = context;
     _hostingEnvironment    = environment;
     _calculateCreditCard   = calculateCreditCard;
     _customerRepository    = customerRepository;
     _cardDetailsRepository = cardDetailsRepository;
 }
 public CreditCardRepository(CreditCardContext context)
 {
     _context = context;
 }
Example #3
0
 public CardDetailsRepository()
 {
     _context = new CreditCardContext();
 }
Example #4
0
 public CardDetailsRepository(CreditCardContext context)
 {
     _context = context;
 }
 public GenericRepository(CreditCardContext creditCardContext)
 {
     this.creditCardContext = creditCardContext;
 }
 public CreditCardController(CreditCardContext context)
 {
     _context = context;
 }
 public CreditCardItemController(CreditCardContext context, ILogger <CreditCardItemController> logger)
 {
     _context = context;
     _logger  = logger;
 }
 public CustomerRepository(CreditCardContext context)
 {
     _context = context;
 }
 public CustomerRepository()
 {
     _context = new CreditCardContext();
 }