public ActionResult Edit(EditEventModel editModel)
        {
            var oldEvent = GetEvent(editModel.Id);
            var editEvent = new EditEventView();
            var evt = MapEditEventModel(oldEvent,editModel);

            if (oldEvent.Number != editModel.Number)
            {
                evt.NumberSid = _service.ProcureNumber(evt.Number);
                ReleaseOldNumber(editModel);
            }

            using (var trans =_session.BeginTransaction())
            {
                _session.Update(evt);
                trans.Commit();
            }

            ViewData["timezone"] = _timezoneHydration.GetAndSetSelectedTimezone(evt.Timezone);
            editEvent.Message = "The event has been updated.";
            editEvent.Event = ConvertToEventJsonView(evt);

            return View(editEvent);
        }
        public ActionResult Edit(int? id)
        {
            var editEvent = new EditEventView();

            if (id != null)
            {
                var evt = GetEvent(id.Value);

                var selectedList = _timezoneHydration.GetAndSetSelectedTimezone(evt.Timezone);
                ViewData["timezone"] = selectedList;
                editEvent.Event = ConvertToEventJsonView(evt);
            }

            return View(editEvent);
        }