Example #1
0
        public ActionResult CreateEvent(CreateEventVM model)
        {
            if (ModelState.IsValid)
            {
                db.CreateEvent(model.Event);
                return(RedirectToAction("ListEvents"));
            }

            return(View(model));
        }