public ActionResult Edit(EditViewModel editViewModel)
        {
            if (editViewModel == null)
            {
                throw new HttpException(400, "Bad Request");
            }

            var meeting = MeetingService.FindById(editViewModel.MeetingId);
            if (meeting == null)
            {
                throw new HttpException(404, "Not Found");
            }
            meeting.Note = editViewModel.Note;
            meeting.DateMeeting = !String.IsNullOrEmpty(editViewModel.DateMeeting) ? (DateTime?)DateTime.ParseExact(editViewModel.DateMeeting, "dd/MM/yyyy", CultureInfo.InvariantCulture) : null;
            meeting.UpdateTime = DateTime.Now;

            MeetingService.UpdateMeeting(meeting);
            TempData["MeetingId"] = meeting.MeetingId;
            TempData["Message"] = MeetingsMessage.EditSuccess;
            return RedirectToAction("index", "meetings");
        }
        public ActionResult Edit(int? id)
        {
            if (id == null)
            {
                throw new HttpException(400, "Bad Request");
            }

            var meeting = MeetingService.FindById(id.Value);
            if (meeting == null)
            {
                throw new HttpException(404, "Not Found");
            }

            var editViewModel = new EditViewModel()
            {
                MeetingId = meeting.MeetingId,
                DateMeeting = meeting.DateMeeting != null ? meeting.DateMeeting.Value.ToString("dd/MM/yyyy") : "",
                Note = meeting.Note
            };
            return View(editViewModel);
        }