Example #1
0
 public ShowsView(Show show)
     : base("Show",
            A(ResolveUri.ForNewProposalFromExistingShow(show), "Create a Proposal")
            , Ul(Li(Text("Name: "), Text(show.Name)),
                 Li(Text("Description: "), Text(show.Description)),
                 Li(Text("Seasons: "), Ul(show.Seasons.Select(season => Li(A(ResolveUri.ForSeason(show, ShowService.GetSeason(show.Name, season.Number)), season.Name))).ToArray())))
            )
 {
 }