public ActionResult Index() { List <BidQuestion> bidQuestions = new List <BidQuestion>(); bidQuestions = iplSchedule.getBidQuestionForBidder(getUserID()); return(View(bidQuestions)); }
public ActionResult Bid() { if (getUser() != null) { IPLUser user = getUser(); ViewBag.user = user; List <BidQuestion> bidQuestions = new List <BidQuestion>(); bidQuestions = iplSchedule.getBidQuestionForBidder(user.userId); return(View(bidQuestions)); } else { return(RedirectToAction("Index", "Home")); } }