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); }
public bool SyncAccount(AccountBag accountBag) { return(Db.SyncAccount(accountBag)); }