Пример #1
0
 /// <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());
 }