@model KernelRecordsMVC.Models.Release
@Model.Title

@Model.Title

@Model.Genre

Record Label: @Model.RecordLabel

Release Date: @Model.ReleaseDate.ToString("MMMM dd, yyyy")

Artists

@string.Join( ", ", Model.ReleaseArtists .OrderBy(x => x.ReleaseOrdinal) .Select(x => x.Artist.ArtistName) )


Available Products

@foreach (var product in Model.Products) {

@product.Format

$@product.Price

@product.ProductDescription

@if (product.Stock > 0) {

In stock: @product.Stock

Add to Cart } else {

Out of stock

}
}
@if (Model.Album != null) {

Track List

    @foreach (var albumSong in Model.Album.AlbumSongs .OrderBy(x => x.SongId)) {
  1. @albumSong.Song.SongName (@albumSong.Song.SongDuration)
  2. }
} @if (Model.SingleRelease != null) {

Single

Duration: @Model.SingleRelease.Duration

}