public static WarehouseCollection LoadForShipMethod(Int32 shipMethodId) { return(WarehouseDataSource.LoadForShipMethod(shipMethodId, 0, 0, string.Empty)); }
public static WarehouseCollection LoadForShipMethod(Int32 shipMethodId, string sortExpression) { return(WarehouseDataSource.LoadForShipMethod(shipMethodId, 0, 0, sortExpression)); }
/// <summary> /// Deletes a warehouse, reassociating any products with the specified warehouse. /// </summary> /// <param name="newWarehouseId">The warehouse that associated products should be switched to</param> /// <returns>True if the warehouse is deleted, false otherwise.</returns> public virtual bool Delete(int newWarehouseId) { WarehouseDataSource.MoveProducts(this.WarehouseId, newWarehouseId); return(this.Delete()); }