Esempio n. 1
0
        // auctionId ?????
        public ActionResult List(int id)
        {
            WebBidService wbs           = new WebBidService();
            List <WebBid> bidsToDisplay = wbs.GetAllBids(id);


            return(View(bidsToDisplay));
        }
Esempio n. 2
0
        public ActionResult Create(WebBid bid)
        {
            WebBidService wbs = new WebBidService();

            wbs.CreateBid(bid);

            return(RedirectToAction("List", new { id = bid.AuctionId }));
        }
Esempio n. 3
0
        //public ActionResult BidList(int? auctionId)
        //{
        //if (auctionId != null && auctionId > -1)
        //{
        //    WebBidService wbs = new WebBidService();
        //    List<WebBid> bidsToDisplay = wbs.GetAllBids((int)auctionId);
        //    return View(bidsToDisplay);
        //}
        //else
        //{
        //    return RedirectToAction("ABid");
        //}
        //}

        //public ActionResult ABid()
        //{
        //    return View();
        //}

        public ActionResult ABid()
        {
            WebBid        WebBid;
            WebBidService WebBS = new WebBidService();

            WebBid = WebBS.GetBidById(1);


            return(View(WebBid));
        }