public ActionResult GigDetail(int?Id) { var userId = User.Identity.GetUserId(); Gig gigSelected = _unitOfWork.Gigs.GetGigWithAttendeesAndFollowees(Id); var gigDetailViewModel = new GigDetailViewModel { Artist = gigSelected.Artist, Date = gigSelected.DateTime.ToString("dd MMM"), Time = gigSelected.DateTime.ToString("hh:mm"), Venue = gigSelected.Venue, IsUserAttending = gigSelected.IsUserAttending(userId), IsUserFollowing = gigSelected.IsUserFollowing(userId), IsUserLoggedIn = !string.IsNullOrEmpty(userId) }; return(View(gigDetailViewModel)); }