public ActionResult AhpDiets() { var individuals = TempData.GetNsgaResult().Fronts.First().Select(i => (GroupDietIndividual)i).ToList(); var solver = new Solver(); var ordered = solver.AhpSort(individuals, TempData.GetPersonalDataList().Select(p => TempData.GetAhpModel(p.Id)).ToList()); var model = ordered.Select(i => new GroupDietViewModelBuilder().CreateGroupDietViewModel(i, TempData.GetPersonalDataList())).Take(5).ToList(); return(PartialView("DietsPartial", model)); }