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; ...

Get Applied ASP.NET 4 in Context now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.