private static void MapEditColumn(Athlete activeAthlete, ICollection<string> athleteRow)
 {
     var editStatisticsColumn =
         string.Format(
             "<button type='button' class='btn-link edit-statistics' data-athlete-id={0}><span class='glyphicon glyphicon-pencil'></span></button>",
             activeAthlete.Id);
     athleteRow.Add(editStatisticsColumn);
 }
        private static void MapMostRecentStatisticColumn(IEnumerable<Exercise> exercisesOfTheDay, Athlete activeAthlete, ICollection<string> athleteRow)
        {
            foreach (var exercise in exercisesOfTheDay)
            {
                var mostRecentStatistic =
                    activeAthlete.AthleteStatistics
                        .Where(m => m.ExerciseId == exercise.Id)
                        .OrderByDescending(m => m.Date)
                        .FirstOrDefault();

                var exerciseColumn = "";
                if (mostRecentStatistic != null)
                {
                    exerciseColumn = string.Format("{0} kg ({1})", mostRecentStatistic.Weight.ToString("0"),
                        mostRecentStatistic.Date.ToString("dd-MM-yyy"));
                }

                athleteRow.Add(exerciseColumn);
            }
        }
        public AthleteStatisticViewModelBuilder WithAthleteId(Athlete athlete)
        {
            _athleteStatisticViewModel.AthleteId = athlete.Id;

            return this;
        }
 private static void MapNameColumn(Athlete activeAthlete, ICollection<string> athleteRow)
 {
     var nameColumn = string.Format("{0} {1}", activeAthlete.FirstName, activeAthlete.LastName);
     athleteRow.Add(nameColumn);
 }