Esempio n. 1
0
 public ActionResult DateValidate(string cultureName, DateModel m)
 {
     if (m.CreateDate == DateTime.MinValue)
         m.CreateDate = DateTime.Now;
     return View(m);
 }
Esempio n. 2
0
 public ActionResult DateValidate()
 {
     DateModel m = new DateModel();
     m.CreateDate = DateTime.Now;
     return View(m);
 }