public bool AddBalanceDetail(BalanceDetailInfo balanceDetails)
 {
     if (balanceDetails == null)
     {
         return false;
     }
     DbCommand storedProcCommand = this.database.GetStoredProcCommand("sp_Pay_BalanceDetails_Create");
     this.database.AddOutParameter(storedProcCommand, "Status", DbType.Int32, 4);
     this.database.AddInParameter(storedProcCommand, "UserId", DbType.Int32, balanceDetails.UserId);
     this.database.AddInParameter(storedProcCommand, "TradeDate", DbType.DateTime, balanceDetails.TradeDate);
     this.database.AddInParameter(storedProcCommand, "TradeType", DbType.Int32, (int) balanceDetails.TradeType);
     this.database.AddInParameter(storedProcCommand, "Income", DbType.Currency, balanceDetails.Income);
     this.database.AddInParameter(storedProcCommand, "Balance", DbType.Currency, balanceDetails.Balance);
     this.database.AddInParameter(storedProcCommand, "Remark", DbType.String, balanceDetails.Remark);
     this.database.AddInParameter(storedProcCommand, "rechargeId", DbType.Int64, balanceDetails.JournalNumber);
     this.database.ExecuteNonQuery(storedProcCommand);
     return (((int) this.database.GetParameterValue(storedProcCommand, "Status")) == 0);
 }
 public static bool AddBalanceDetail(BalanceDetailInfo balanceDetails)
 {
     return service.AddBalanceDetail(balanceDetails);
 }