示例#1
0
 public ActionResult Details(long id=0)
 {
     var action = new Ebuy.Web.Models.Auction
     {
         Id = id,
         Title = "Brand new Widget 2.0",
         Description = "This is a brand new version 2.0 Widget!",
         StartPrice = 1.00m,
         CurrentPrice = 13.40m,
         StartTime = DateTime.Parse("6-15-2012 12:34 PM"),
         EndTime = DateTime.Parse("6-15-2012 12:34 PM"),
     };
     return View(action);
 }
示例#2
0
        public ActionResult Details(long id = 0)
        {
            var action = new Ebuy.Web.Models.Auction
            {
                Id           = id,
                Title        = "Brand new Widget 2.0",
                Description  = "This is a brand new version 2.0 Widget!",
                StartPrice   = 1.00m,
                CurrentPrice = 13.40m,
                StartTime    = DateTime.Parse("6-15-2012 12:34 PM"),
                EndTime      = DateTime.Parse("6-15-2012 12:34 PM"),
            };

            return(View(action));
        }
示例#3
0
 public ActionResult Create(Auction auction)
 {
     return View(auction);
 }