@page @model IndexModel @{ ViewData["Title"] = "Song of the Day"; }

Submission History

@if(@User.Identity.IsAuthenticated) { } @foreach(var songSuggestion in Model.SongSuggestions) { @if(songSuggestion != null && songSuggestion.Song != null && songSuggestion.User != null && songSuggestion.UserHasSubmitted) { var displayName = string.IsNullOrEmpty(songSuggestion?.User?.NickName) ? songSuggestion?.User.Name : songSuggestion.User.NickName; @if(@User.Identity.IsAuthenticated) { } } }
Date Song SubmitterDetails
@songSuggestion?.Date.ToString("dd. MM. yyyy") @string.Format("{0} - {1}", songSuggestion?.Song.Name, songSuggestion?.Song.Artist) @displayNameView @if(songSuggestion?.Song != null) { var handler = Model.HasUserLikedThisSong(@songSuggestion.Song) ? "UnlikeSong" : "LikeSong"; var likebuttonText = Model.HasUserLikedThisSong(@songSuggestion.Song) ? "Unlike" : "Like";
}