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