public void SaveShelfStorageType(int storageType) { if (this.IsColumnNull("ShelfStorageType") || this.ShelfStorageType != storageType) { // make the modification to all simmilar storage types of pallet Locations PalletLocation pl = new PalletLocation(); if (this.IsColumnNull("ShelfStorageType")) { pl.ChangeStorageTypesOf(this.ID, storageType); } else { pl.ChangeStorageTypesOf(this.ID, this.ShelfStorageType, storageType); } } this.ShelfStorageType = storageType; this.Save(); }
/// <summary> /// Saves the type of the shelf storage. /// </summary> /// <param name="storageType">Type of the storage.</param> public void SaveShelfStorageType(int storageType) { if (this.IsColumnNull("ShelfStorageType") || this.ShelfStorageType != storageType) { // make the modification to all simmilar storage types of pallet Locations PalletLocation pl = new PalletLocation(); if (this.IsColumnNull("ShelfStorageType")) { pl.ChangeStorageTypesOf(this.ID, storageType); } else { pl.ChangeStorageTypesOf(this.ID, this.ShelfStorageType, storageType); } } this.ShelfStorageType = storageType; this.Save(); }