public SalesTerritory GetSalesTerritoryBySalesTerritoryID(int SalesTerritoryID) { SalesTerritoryDO salesTerritoryDO = new SalesTerritoryDO(); SalesTerritory salesTerritory = salesTerritoryDO.GetSalesTerritoryBySalesTerritoryID(SalesTerritoryID); return(salesTerritory); }
public SalesTerritory SaveSalesTerritory(SalesTerritory salesTerritory) { SalesTerritoryDO salesTerritoryDO = new SalesTerritoryDO(); try { salesTerritoryDO.SaveSalesTerritory(salesTerritory); } catch (Exception ex) { throw; } return(salesTerritory); }
public List <SalesTerritory> GetSalesTerritories() { SalesTerritoryDO salesTerritoryDO = new SalesTerritoryDO(); List <SalesTerritory> salesTerritories = new List <SalesTerritory>(); try { salesTerritories = salesTerritoryDO.GetSalesTerritories(); } catch (Exception ex) { throw; } return(salesTerritories); }