public ActionResult Create()
        {
            var viewModel = new CreateViewModel
            {
                Categories = this.GetCategories()
            };

            return this.View(viewModel);
        }
        public ActionResult Create(CreateViewModel model)
        {
            if (this.ModelState.IsValid)
            {
                var userId = this.User.Identity.GetUserId();

                var currentEvent = this.Mapper.Map<Event>(model.InputModel);
                currentEvent.CreatorId = userId;

                this.events.Add(currentEvent);

                return this.RedirectToAction("Index", "AllEvents");
            }

            model.Categories = this.GetCategories();

            return this.View(model);
        }