BO Method to get Primary Sales Rep For Territory - Anyone know of this?

Does anyone know if there is a business object method out there to return the primary sales rep for a territory?

This rest call will return json with the primary sales rep code.

Or you can use a business object method: adapterSalesTer.GetData(“YourTerritoryID”)

SalesTerAdapter adapterSalesTer = new SalesTerAdapter(this.oTrans);
adapterSalesTer.BOConnect();

  	// Declare and Initialize Variables
  	// TODO: You may need to replace the default initialization with valid values as required for the BL method call.
  	string stringId = ((string)(edvQuoteHed.dataView[edvQuoteHed.Row]["TerritoryID"]));
  	// Call Adapter method
  	System.Data.DataSet dsSalesTer = adapterSalesTer.GetData(stringId);
  	if(dsSalesTer.Tables["SalesTer"].Rows[0] != null)
  	{
  		//MessageBox.Show(dsSalesTer.Tables["SalesTer"].Rows[0]["PrimeSalesRepCode"].ToString());
  		PrimSalesRep = dsSalesTer.Tables["SalesTer"].Rows[0]["PrimeSalesRepCode"].ToString();
  	}