public ActionResult Details(long id = 0)
 {
     var auction = new WebForTraining.Models.Auction
     {
         Id = id,
         Title = "Brand new Widget 2.0",
         Description = "This a brand new version 2.0 Widget!",
         StartPrice = 1.00m,
         CurrentPrice = 13.40m,
         StartTime = DateTime.Parse("15-06-2012 12:34:00"),
         EndTime = DateTime.Parse("23-06-2012 12:34:00")
     };
     return View(auction);
 }
Example #2
0
        public ActionResult Details(long id = 0)
        {
            var auction = new WebForTraining.Models.Auction
            {
                Id           = id,
                Title        = "Brand new Widget 2.0",
                Description  = "This a brand new version 2.0 Widget!",
                StartPrice   = 1.00m,
                CurrentPrice = 13.40m,
                StartTime    = DateTime.Parse("15-06-2012 12:34:00"),
                EndTime      = DateTime.Parse("23-06-2012 12:34:00")
            };

            return(View(auction));
        }