public bool RemoveShipMethod(ShipMethod shipmethod) { ShipMethodData data = new ShipMethodData(); bool ret = false; try { ret = data.DeleteShipMethod(shipmethod); } catch (Exception ex) { log.Write(ex.Message, "RemoveShipMethod"); throw (ex); } finally { data = null; } return(ret); }
public int AddShipMethod(ShipMethod shipmethod) { ShipMethodData data = new ShipMethodData(); int id = 0; try { id = data.AddShipMethod(shipmethod); } catch (Exception ex) { log.Write(ex.Message, "AddShipMethod"); throw (ex); } finally { data = null; } return(id); }
public ShipMethod GetShipMethods(int shipMethodID) { ShipMethodData data = new ShipMethodData(); ShipMethod sm = new ShipMethod(); try { sm = data.GetShipMethod(shipMethodID); } catch (Exception ex) { log.Write(ex.Message, "GetShipMethods"); throw (ex); } finally { data = null; } return(sm); }
public bool Contains(ShipMethod shipMethod) { return(this.List.Contains(shipMethod)); }
public void Remove(ShipMethod shipMethod) { this.List.Remove(shipMethod); }
public void Insert(int index, ShipMethod shipMethod) { this.List.Insert(index, shipMethod); }
public int IndexOf(ShipMethod shipMethod) { return(this.List.IndexOf(shipMethod)); }
public int Add(ShipMethod shipMethod) { return(this.List.Add(shipMethod)); }