Exemplo n.º 1
0
 public SeasonView(string show, Season season) :
     base("Season",
          A(ResolveUri.ForHome(), "Home")
          , H1(Text("TV Shows"))
          , H2(Text(show))
          , H3(Text(string.Format("Starts: {0}", season.Debut.ToString("d"))))
          , H3(Text(string.Format("Ends: {0}", season.Finale.ToString("d"))))
          , Ul(season.Episodes.Select(episode => Li(A(
                                                        ResolveUri.ForEpisode(ShowService.GetShowByName(show)
                                                                              , ShowService.GetSeason(show, season.Number)
                                                                              , ShowService.GetEpisodeByNumberShowAndSeason(show, season.Number, episode.Number)
                                                                              )
                                                        , episode.Title)
                                                    )
                                      ).ToArray()
               )
          )
 {
 }