@model IEnumerable @{ ViewData["Title"] = "Browse Releases"; }
KERNEL RECORDS

Browse Releases

Explore vinyl, CDs and cassettes from our collection.

@Model.Count() releases
@if (!string.IsNullOrWhiteSpace(ViewBag.Search as string) || !string.IsNullOrWhiteSpace(ViewBag.Genre as string) || !string.IsNullOrWhiteSpace(ViewBag.Format as string) || !string.IsNullOrWhiteSpace(ViewBag.Type as string) || !string.IsNullOrWhiteSpace(ViewBag.Sort as string)) { }
@if (!Model.Any()) {
♪

No releases found

Try changing your search or filters.

View All Releases
} else {
@foreach (var release in Model) { var isAlbum = release.Album != null; var isSingle = release.SingleRelease != null; var releaseType = isAlbum ? "ALBUM" : isSingle ? "SINGLE" : "RELEASE"; var artists = string.Join( ", ", release.ReleaseArtists .OrderBy(x => x.ReleaseOrdinal) .Select(x => x.Artist.ArtistName) ); var lowestPrice = release.Products .Select(x => (decimal?)x.Price) .Min(); }
}