Example #1
0
        // GET: Model Binding
        public ActionResult ModelBinding()
        {
            var model = new TimePickerModelBinding()
            {
                value = DateTime.Now
            };

            ViewBag.value     = model.value;
            ViewData["value"] = model.value;
            return(View(model));
        }
Example #2
0
 public ActionResult ModelBinding(TimePickerModelBinding model)
 {
     return(View(model));
 }