Beispiel #1
0
 public PayOrderBag CreatePayOrder(AccountBag payer, AccountBag receiver, double payNum,
                                   PayOrderTypeEnum payOrderType,
                                   PaymentTypeEnum paymentType)
 {
     return(new PayOrderBag(payer, receiver, payOrderType, paymentType, payNum));
 }
 public static bool SyncAccount(this MyDbContext db, AccountBag accountBag)
 {
     db.account.AddOrUpdate(accountBag.Account);
     return(db.SaveChanges() > 0);
 }
Beispiel #3
0
 public bool SyncAccount(AccountBag accountBag)
 {
     return(Db.SyncAccount(accountBag));
 }