public static CustomerAcctDto[] GetActivePrepaidResellCustomerAccts(int pPartnerId) { CustomerAcctDto[] _customerAccts; using (var _db = new Rbr_Db()) { _customerAccts = CustomerAcctManager.GetAllResellAcctsByPartnerId(_db, pPartnerId); } if (_customerAccts != null && _customerAccts.Length > 0) { var _customerAcctList = new List <CustomerAcctDto>(); foreach (CustomerAcctDto _customerAcctDto in _customerAccts) { if (_customerAcctDto.IsPrepaid && _customerAcctDto.Status == Status.Active) { _customerAcctList.Add(_customerAcctDto); } } return(_customerAcctList.ToArray()); } return(null); }