Esempio n. 1
0
        public ActionResult Index()
        {
            var meeting = new Meeting() { StartDate = DateTime.Today, EndDate = DateTime.Today.AddDays(1), MinTitleLength = 4};
            ViewBag.Message = "Welcome to ASP.NET MVC!";

            return View(meeting);
        }
Esempio n. 2
0
        public ActionResult Index(FormCollection collection)
        {
            var meeting = new Meeting();

            if (TryUpdateModel(meeting))
            {
                return RedirectToAction("Index");
            }

            return View(meeting);
        }