public IAccount GetRechargeAccount(IOrg org, DateTime startDate, DateTime endDate) { IAccount result = null; var or = Provider.Billing.OrgRecharge.GetOrgRecharge(org.OrgID, startDate, endDate); if (or == null) { IChargeType ct = Provider.Data.Org.GetChargeType(org.ChargeTypeID); result = Provider.Data.Account.GetAccount(ct.AccountID); //no recharge account specified for this org so use the default from ChargeType } else { result = Provider.Data.Account.GetAccount(or.AccountID); } return(result); }
public IAccount GetAccount(IChargeType chargeType) { return(Session.Get <AccountInfo>(chargeType.AccountID).CreateModel <IAccount>()); }
public IAccount GetAccount(IChargeType chargeType) { throw new NotImplementedException(); }