Ejemplo n.º 1
0
 public static CustomerAcctDto[] GetActivePrepaidCustomerAcctsByPartnerId(int pPartnerId)
 {
     CustomerAcctDto[] _customerAccts;
     using (var _db = new Rbr_Db()) {
         _customerAccts = CustomerAcctManager.GetAcctsByPartnerId(_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);
 }
Ejemplo n.º 2
0
 public static CustomerAcctDto[] GetAcctsByPartnerId(int pPartnerId)
 {
     using (var _db = new Rbr_Db()) {
         return(CustomerAcctManager.GetAcctsByPartnerId(_db, pPartnerId));
     }
 }