Пример #1
0
        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);
        }
Пример #2
0
 public IAccount GetAccount(IChargeType chargeType)
 {
     return(Session.Get <AccountInfo>(chargeType.AccountID).CreateModel <IAccount>());
 }
Пример #3
0
 public IAccount GetAccount(IChargeType chargeType)
 {
     throw new NotImplementedException();
 }