public static void SaveCashData() { Cash a = new Cash(ID, SelectedSur); MyBDEntities context = new MyBDEntities(); context.Cash.Add(a); context.SaveChangesAsync(); }
public static void SaveCardData() { Card a = new Card(ID, NumOfCard, Holder, SelectedMonth, SelectedYear, CVV); MyBDEntities context = new MyBDEntities(); context.Card.Add(a); context.SaveChangesAsync(); }