internal static CustomerAcctSupportMapDto[] GetAllCustomerAcctSupportMaps(Rbr_Db pDb, int pVendorId)
        {
            ArrayList _list = new ArrayList();

            //get mapped
            CustomerAcctSupportMapRow[] _customerAcctSupportMapRows = pDb.CustomerAcctSupportMapCollection.GetByVendor_id(pVendorId);
            foreach (CustomerAcctSupportMapRow _customerAcctSupportMapRow in _customerAcctSupportMapRows)
            {
                CustomerAcctDto _customerAcct = CustomerAcctManager.GetAcct(pDb, _customerAcctSupportMapRow.Customer_acct_id);
                _list.Add(mapToCustomerAcctSupportMap(_customerAcctSupportMapRow, _customerAcct));
            }

            //get unmapped too, as not Assigned
            CustomerAcctDto[] _unmappedCustomerAccts = CustomerAcctManager.GetUnmapped(pDb, pVendorId);
            foreach (CustomerAcctDto _unmappedCustomerAcct in _unmappedCustomerAccts)
            {
                _list.Add(mapToCustomerAcctSupportMap(null, _unmappedCustomerAcct));
            }

            if (_list.Count > 1)
            {
                //TODO: should we sort it by Assigned as well???
                _list.Sort(new GenericComparer(CustomerAcctSupportMapDto.CustomerAcctName_PropName, System.ComponentModel.ListSortDirection.Ascending));
            }
            return((CustomerAcctSupportMapDto[])_list.ToArray(typeof(CustomerAcctSupportMapDto)));
        }
        internal static CustomerAcctSupportMapDto GetCustomerAcctSupportMap(Rbr_Db pDb, short pCustomerAcctId, int pVendorId)
        {
            CustomerAcctSupportMapRow _customerAcctSupportMapRow = pDb.CustomerAcctSupportMapCollection.GetByPrimaryKey(pCustomerAcctId, pVendorId);
            CustomerAcctDto           _customerAcct = CustomerAcctManager.GetAcct(pDb, pCustomerAcctId);

            return(mapToCustomerAcctSupportMap(_customerAcctSupportMapRow, _customerAcct));
        }