public bool RemoveSalesTerritory(SalesTerritory salesterritory) { SalesTerritoryData data = new SalesTerritoryData(); bool ret = false; try { ret = data.DeleteSalesTerritory(salesterritory); } catch (Exception ex) { log.Write(ex.Message, "RemoveSalesTerritory"); throw (ex); } finally { data = null; } return(ret); }
public SalesTerritory GetSalesTerritorys(int territoryID) { SalesTerritoryData data = new SalesTerritoryData(); SalesTerritory st = new SalesTerritory(); try { st = data.GetSalesTerritory(territoryID); } catch (Exception ex) { log.Write(ex.Message, "GetSalesTerritorys"); throw (ex); } finally { data = null; } return(st); }
public int AddSalesTerritory(SalesTerritory salesterritory) { SalesTerritoryData data = new SalesTerritoryData(); int ret = 0; try { ret = data.AddSalesTerritory(salesterritory); } catch (Exception ex) { log.Write(ex.Message, "AddSalesTerritory"); throw (ex); } finally { data = null; } return(ret); }
public bool Contains(SalesTerritory saleTerritory) { return(this.List.Contains(saleTerritory)); }
public void Remove(SalesTerritory saleTerritory) { this.List.Remove(saleTerritory); }
public void Insert(int index, SalesTerritory saleTerritory) { this.List.Insert(index, saleTerritory); }
public int IndexOf(SalesTerritory saleTerritory) { return(this.List.IndexOf(saleTerritory)); }
public int Add(SalesTerritory saleTerritory) { return(this.List.Add(saleTerritory)); }