O'Reilly logo

Applied ASP.NET 4 in Context by Adam Freeman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building the Performance Tab

The Performance tab displays the best performance for each event type for a selected athlete. To make it easier to pass this information from the controller to the view, I have defined a couple of view model classes, as shown in Listing 31-35. I created these classes in the Models/View folder.

Listing 31-35. View model classes for use in the Performance tab

using System; using TriathlonApp.Models.Domain; namespace TriathlonApp.Models.View {     public class PerformanceSummary {         public string Athlete { get; set; }         public RankingSet SprintRanks { get; set; }         public TimeSet SprintTimes { get; set; }         public RankingSet OlympicRanks { get; set; }         public TimeSet OlympicTimes { get; ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required