public ActionResult GetReviews() { var scrum = _scrumMasterProvider.Get(CurrentUser.Id.Value); var reviews = scrum.CurrentGroup.Trainees .Select(tr => _scrumReviewProvider.GetReviewForTrainee(tr.Id) ?? _scrumReviewProvider.CreateEmptyForTrainee(tr.Id)) .OrderBy(tr => tr.ReviewedTrainee.User.FullName).ToList(); var scrumTraineesVM = _scrumMasterMapper.ReviewToEditViewModel(scrum, reviews); return(View("Reviews", scrumTraineesVM)); }
private DetailedScrumMasterInfo GetScrumMasterDetails(int userId) { var scrumMaster = _scrumMasterProvider.Get(userId); return(_scrumMasterMapper.ToDetailedScrumMasterInfo(scrumMaster)); }