示例#1
0
 private void Close(Otp otp)
 {
     otp.Status          = 2;
     otp.ConsumptionTime = DateTime.Now;
     Context.Otp.Update(otp);
     Context.SaveChanges();
 }
示例#2
0
 public void Update(Account account)
 {
     Context.Account.Update(account);
     Context.SaveChanges();
 }
 public void InsertTransaction(Transaction transaction)
 {
     Context.Transaction.Add(transaction);
     Context.SaveChanges();
 }