예제 #1
0
        public static void SaveCashData()
        {
            Cash         a       = new Cash(ID, SelectedSur);
            MyBDEntities context = new MyBDEntities();

            context.Cash.Add(a);
            context.SaveChangesAsync();
        }
예제 #2
0
        public static void SaveCardData()
        {
            Card         a       = new Card(ID, NumOfCard, Holder, SelectedMonth, SelectedYear, CVV);
            MyBDEntities context = new MyBDEntities();

            context.Card.Add(a);
            context.SaveChangesAsync();
        }