コード例 #1
0
        public ActionResult Index()
        {
            List <BidQuestion> bidQuestions = new List <BidQuestion>();

            bidQuestions = iplSchedule.getBidQuestionForBidder(getUserID());
            return(View(bidQuestions));
        }
コード例 #2
0
 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"));
     }
 }