Skip to content

Instantly share code, notes, and snippets.

@bcnzer
Created February 13, 2017 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bcnzer/6631631ac9281ac455d89f92e867a16b to your computer and use it in GitHub Desktop.
Save bcnzer/6631631ac9281ac455d89f92e867a16b to your computer and use it in GitHub Desktop.
Simple method to get a list of storage locations
[HttpPost]
[ValidateAntiForgeryToken]
public IActionResult StorageLocations(bool isHardcover)
{
var locations = _locations.Where(x => x.IsHardcover).ToList();
return Json(locations);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment