public ActionResult Create(EventViewModel model)
{
if (ModelState.IsValid)
{
eventRepository.SaveEvent(model.SelectedEvent);
this.Success("The event has been created.");
return RedirectToAction("Index");
}
model.Categories = categorySelectList();
ViewBag.action = "Create";
return View("EventForm", model);
}