public ViewResult Awards(int id) { User user = Repository.GetUserByID(id); List <AwardEditView> awards = Repository.GetAwards().Select(award => new AwardEditView { Id = award.AwardID, Title = award.Title, Description = award.Description, ExistingPath = award.ImagePath, UserID = user.UserID }).ToList(); List <UserAward> userAwards = Repository.GetUserAwards().ToList(); IndexViewModel indexView = new IndexViewModel { Awards = awards, User = user, UserAwards = userAwards }; return(View(indexView)); }