public ActionResult Profile(int ID) { mockUser = DBCalls.getUser(ID); mockQuestions = DBCalls.GetQuestions(ID); mockAnswers = DBCalls.GetAnswers(ID); //mockRewards = getRewards(); ViewBag.User = mockUser; ViewBag.ID = mockUser.Id; ViewBag.userName = mockUser.Name; ViewBag.email = mockUser.Email; ViewBag.team = mockUser.Team; ViewBag.score = mockUser.Score; ViewBag.Preferences = mockUser.Tags; ViewBag.Questions = mockQuestions; ViewBag.Answers = mockAnswers; ViewBag.Rewards = mockRewards; return(View()); }
public ActionResult Answers(int ID) { ViewBag.User = DBCalls.getUser(ID); ViewBag.Answers = DBCalls.GetAnswers(ID); return(View()); }