Skip to content

Instantly share code, notes, and snippets.

@bcnzer
Created February 13, 2017 19:03
Show Gist options
  • Save bcnzer/617fd48e0de118a75bbfc86e69703a2c to your computer and use it in GitHub Desktop.
Save bcnzer/617fd48e0de118a75bbfc86e69703a2c to your computer and use it in GitHub Desktop.
List of storage locations based on isHardcover
public class StorageLocation
{
public bool IsHardcover { get; set; }
public string LocationName { get; set; }
}
// My static storage data, for the purposes of this demo
private readonly List<StorageLocation> _locations = new List<StorageLocation>()
{
new StorageLocation() { IsHardcover = true, LocationName = "General Circulation" },
new StorageLocation() { IsHardcover = true, LocationName = "Backroom" },
new StorageLocation() { IsHardcover = true, LocationName = "Offsite" },
new StorageLocation() { IsHardcover = false, LocationName = "General Circulation" },
new StorageLocation() { IsHardcover = false, LocationName = "Backroom" }
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment