예제 #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));
        }
예제 #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);
        }