public static StatsBodyViewModel GenerateStatsBody(DateRange period) { StatsBodyViewModel result = new StatsBodyViewModel(); result.Top5Interviewers = EvaluationStandings.GetAllStandings(period).Take(5).ToList(); foreach (var interviewer in result.Top5Interviewers) { interviewer.SeniorityChart = GetSeniorityChartData(period, interviewer.InterviewerId); interviewer.LengthChart = GetLengthChartData(period, interviewer.InterviewerId); interviewer.StageChart = GetStageChartData(period, interviewer.InterviewerId); } return(result); }
public static List <StandingsInterviewersViewModel> GetAllStandings() { return(EvaluationStandings.GetAllStandings(new DateRange())); }