public void Add(Purchase purchase)
 {
     _context.Purchases.Add(purchase);
     _context.SaveChanges();
 }
示例#2
0
 public void Add(CreditCard newCreditCard)
 {
     _context.CreditCards.Add(newCreditCard);
     _context.SaveChanges();
 }