Esempio n. 1
0
 private ProductModel GetProduct()
 {
     ProductModel model = new ProductModel();
     model.CreateDate = DateTime.Now;
     model.CreateDateTime = DateTime.Now;
     model.CreateDateTimeNullable = new DateTime(2014, 12, 30);
     model.Id = 1;
     model.Price = 12345678.98765D;
     model.PricedDecmial = 12345678.01543M;
     model.ProductName = "iPhone5s";
     return model;
 }
Esempio n. 2
0
 public ActionResult Price(string cultureName, ProductModel model)
 {
     return View(GetProduct());
 }