Esempio n. 1
0
        public ActionResult Auction()
        {
            var auction = new MvcAuction.Models.Auction()
            {
                Title        = "Example Auction",
                Description  = "This is an example Auction",
                StartTime    = DateTime.Now,
                EndTime      = DateTime.Now.AddDays(7),
                StartPrice   = 1.00m,
                CurrentPrice = null,
            };

            //ViewData["Auction"] = auction;
            return(View(auction));
        }
Esempio n. 2
0
        public ActionResult Auction()
        {
            var auction = new MvcAuction.Models.Auction()
            {
                Title = "Example Auction",
                Description = "This is an example Auction",
                StartTime = DateTime.Now,
                EndTime = DateTime.Now.AddDays(7),
                StartPrice = 1.00m,
                CurrentPrice = null,
            };

            ViewData["Auction"] = auction;

            return View(auction);
        }